I am trying to run my application from inside Visual Studio. It uses the
Managed DirectX SDK. When I run it from INSIDE VS, I get this runtime error:
"LoaderLock was detected
Message: 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 then go and run it from OUTSIDE the VS IDE, it runs fine, but then I
don't ge the advantages of debugging, etc. What's this about?
Thanks.
Alex
|