views:

422

answers:

2

I have a c#/winforms application that uses directx to play some video and audio.

whenever i start my application in debugmode i get this annoying message. i can click "continue" and everything seems to work fine. but i still want to get rid of this message. it does not show up in releasemode.


Managed Debugging Assistant 'LoaderLock' has detected a problem in 'C:\pathtoexe.exe'. Additional Information: DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX.AudioVideoPlayback\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.AudioVideoPlayback.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.


+1  A: 

It's a known issue with managed DirectX (which is now discontinued). You can safely ignore it. Simply turn the MDA off in Visual Studio (goto Debug|Exceptions|Managed Debugging Assistants)

Mark Heath
thanks! what exactly should i turn off there?
clamp
ah the loader lock! thank you!
clamp
A: 

Its not helping. I am getting the similar error in release mode as well.

sandeep gupta