“LoaderLock was detected” in Visual Studio 2005
by Vershun on May.21, 2007, under Computers
“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.”
This annoying error occurred today when trying to run a C# project I’ve been working on. After scouring through my code and verifying that I had no managed code and following going to a few different sites, I found out iTunes can cause this error. After I closed it everything worked fine.
If you’re having this error while running iTunes, try closing the iTunes and then uninstalling it if it’s still having errors.
I’m not quite sure who to blame for this. My gut reaction is that iTunes is doing some weird kernel hooks that Windows doesn’t like. However, since it’s more comfortable and easy for me, I’ll blame Microsoft.
MICROSOFT, FIX YOUR SHIT!