Loader Lock

July 1, 2009 11:56 AM Published by

Message: DLL ‘D:\My Documents\Visual Studio 2005\Projects\SVS_Client\bin\Debug\SQLiteNET.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.

Essentially, the current version of DirectX doesn’t play well with the current version of Visual Studio. It’s a known issue and should be resolved in the next update to the DirectX library (not sure where I read this, but it was somewhere on Microsoft’s site).

Right now you’re just going to have to disable that exception from being thrown. Hit the Debug->Exceptions… menu item, open up the open up the “Managed Debugging Assistant” item, and uncheck the box next to the “LoaderLock” item. IIRC you should be fine in most situations as long as you avoid calling stuff from your DllMain function.

Unclick the Thrown checkbox and tray again.

Categorised in:


Tag Cloud