Z
Z.K.
I was wondering if someone could tell me why I get this message and how
to prevent it. If I hit continue, it runs fine, but want to know what I
am doing wrong so I won't get this error in the future. also what is
the file Clock.vshost.exe; my application is Clock.exe.
Z.K.
'Clock.vshost.exe' (Managed): Loaded 'C:\Documents and
Settings\Super_Wizard\My Documents\Visual Studio
2005\Projects\Clock\bin\Release\Clock.exe', Symbols loaded.
Managed Debugging Assistant 'LoaderLock' has detected a problem in
'C:\Documents and Settings\sssssss\My Documents\Visual Studio
2005\Projects\Clock\bin\Release\Clock.vshost.exe'.
Additional Information: 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.
Here is the code:
private void EnableBtn_Click(object sender, EventArgs e)
{
//create the video object
Microsoft.DirectX.AudioVideoPlayback.Video video;
//load alarm avi file
video = new
microsoft.DirectX.AudioVideoPlayback.Video("C:\\Documents and
Settings\\Super_Wizard\\My Documents\\Visual Studio
2005\\Projects\\Clock\\bin\\Debug\\bell_t.avi");
//set the System.Windows.Forms.Control to play it in (e.g a
panel)
video.Owner = alarmAnimatePanel;
//Play the video (put this in a buttons click event)
video.Play();
}
to prevent it. If I hit continue, it runs fine, but want to know what I
am doing wrong so I won't get this error in the future. also what is
the file Clock.vshost.exe; my application is Clock.exe.
Z.K.
'Clock.vshost.exe' (Managed): Loaded 'C:\Documents and
Settings\Super_Wizard\My Documents\Visual Studio
2005\Projects\Clock\bin\Release\Clock.exe', Symbols loaded.
Managed Debugging Assistant 'LoaderLock' has detected a problem in
'C:\Documents and Settings\sssssss\My Documents\Visual Studio
2005\Projects\Clock\bin\Release\Clock.vshost.exe'.
Additional Information: 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.
Here is the code:
private void EnableBtn_Click(object sender, EventArgs e)
{
//create the video object
Microsoft.DirectX.AudioVideoPlayback.Video video;
//load alarm avi file
video = new
microsoft.DirectX.AudioVideoPlayback.Video("C:\\Documents and
Settings\\Super_Wizard\\My Documents\\Visual Studio
2005\\Projects\\Clock\\bin\\Debug\\bell_t.avi");
//set the System.Windows.Forms.Control to play it in (e.g a
panel)
video.Owner = alarmAnimatePanel;
//Play the video (put this in a buttons click event)
video.Play();
}