directx audio video error message in debugmode
- by clamp
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.