Preventing LoaderLock

cugone

Newcomer
Joined
Apr 30, 2008
Messages
19
I'm having trouble initializing a DirectX.DirectInput custom class Keyboard, I keep getting this error:

"DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX.DirectInput\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.DirectInput.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."

Using Visual Studio 2005
 
Back
Top