Vershun’s Brain Dump

Computers

“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!

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...