Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
QuestionVisual Studio 2008 Windows Service - CPU process usage [modified] Pin
Tomb42111-Dec-09 10:56
Tomb42111-Dec-09 10:56 
AnswerRe: Visual Studio 2008 Windows Service - CPU process usage Pin
Luc Pattyn11-Dec-09 11:06
sitebuilderLuc Pattyn11-Dec-09 11:06 
GeneralRe: Visual Studio 2008 Windows Service - CPU process usage Pin
Tomb42112-Dec-09 1:53
Tomb42112-Dec-09 1:53 
AnswerRe: Visual Studio 2008 Windows Service - CPU process usage Pin
Luc Pattyn12-Dec-09 2:28
sitebuilderLuc Pattyn12-Dec-09 2:28 
GeneralRe: Visual Studio 2008 Windows Service - CPU process usage Pin
Tomb42112-Dec-09 4:14
Tomb42112-Dec-09 4:14 
GeneralRe: Visual Studio 2008 Windows Service - CPU process usage Pin
Tomb42114-Dec-09 2:31
Tomb42114-Dec-09 2:31 
QuestionListView in WPF Pin
Antonio JVS11-Dec-09 8:28
Antonio JVS11-Dec-09 8:28 
QuestionLoader Lock was detected [modified] Pin
Xelalem11-Dec-09 7:58
Xelalem11-Dec-09 7:58 
i used this code to play a video on a panel control

using Microsoft.DirectX.AudioVideoPlayback;

private void open(string path)
            {
                  try
                  {
                        myvideo = new Video(path);
                        myvideo.Owner =panel1;
                        myvideo.Play();
                  }
                  catch
                  {
                  }
            }

but when i run the program it keeps saying

"Loader Lock was detected:
DLL 'C:\Windows\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang."


if i press the run button again it continues excuting normally. What's wrong with the code and how do i fix it???

modified on Friday, December 11, 2009 2:14 PM

AnswerRe: Loader Lock was detected Pin
Saksida Bojan11-Dec-09 8:56
Saksida Bojan11-Dec-09 8:56 
QuestionInfo about casting Pin
Saksida Bojan11-Dec-09 7:55
Saksida Bojan11-Dec-09 7:55 
AnswerRe: Info about casting Pin
Andrew Rissing11-Dec-09 8:00
Andrew Rissing11-Dec-09 8:00 
GeneralRe: Info about casting Pin
Andrew Rissing11-Dec-09 8:03
Andrew Rissing11-Dec-09 8:03 
GeneralRe: Info about casting Pin
Saksida Bojan11-Dec-09 8:43
Saksida Bojan11-Dec-09 8:43 
GeneralRe: Info about casting Pin
harold aptroot11-Dec-09 9:03
harold aptroot11-Dec-09 9:03 
QuestionHow do I attach event handlers to a late-bound object (C#)? Pin
Hawks Talon11-Dec-09 6:52
Hawks Talon11-Dec-09 6:52 
AnswerRe: How do I attach event handlers to a late-bound object (C#)? Pin
Saksida Bojan11-Dec-09 7:03
Saksida Bojan11-Dec-09 7:03 
GeneralRe: How do I attach event handlers to a late-bound object (C#)? Pin
Hawks Talon11-Dec-09 7:35
Hawks Talon11-Dec-09 7:35 
QuestionWMI 'Invalid Method Parameter(s)' JoinDomainOrWorkGroup Pin
Jacob Dixon11-Dec-09 5:52
Jacob Dixon11-Dec-09 5:52 
AnswerRe: WMI 'Invalid Method Parameter(s)' JoinDomainOrWorkGroup Pin
Luc Pattyn11-Dec-09 6:04
sitebuilderLuc Pattyn11-Dec-09 6:04 
GeneralRe: WMI 'Invalid Method Parameter(s)' JoinDomainOrWorkGroup Pin
Jacob Dixon11-Dec-09 6:14
Jacob Dixon11-Dec-09 6:14 
AnswerRe: WMI 'Invalid Method Parameter(s)' JoinDomainOrWorkGroup Pin
Saksida Bojan11-Dec-09 6:52
Saksida Bojan11-Dec-09 6:52 
GeneralRe: WMI 'Invalid Method Parameter(s)' JoinDomainOrWorkGroup Pin
Jacob Dixon11-Dec-09 8:31
Jacob Dixon11-Dec-09 8:31 
GeneralRe: WMI 'Invalid Method Parameter(s)' JoinDomainOrWorkGroup Pin
Saksida Bojan11-Dec-09 8:37
Saksida Bojan11-Dec-09 8:37 
GeneralRe: WMI 'Invalid Method Parameter(s)' JoinDomainOrWorkGroup Pin
Jacob Dixon11-Dec-09 9:10
Jacob Dixon11-Dec-09 9:10 
GeneralRe: WMI 'Invalid Method Parameter(s)' JoinDomainOrWorkGroup Pin
Saksida Bojan11-Dec-09 11:50
Saksida Bojan11-Dec-09 11:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.