I got burnt by this today. Seems that the latest version of iTunes for Windows (which I installed this morning) really messes with Visual Studio 2005. The 1st keystroke entered into a Windows Forms app running in the VS debugger causes VS to throw a “LoaderLock” exception. This only happens if iTunes is running – shut it down and everthing works normally.
Here’s a discussion about the problem on the MSDN forums:
The last comment is from someone at Microsoft pointing the finger at one particular iTunes DLL, named iTunesKeyboardCompatibility.dll. Maybe they should have named it iTunesKeyboardIncompatibility.dll.
Taking this bit of info, I tried deleting the file and running iTunes. But the self-healing Windows Installer technology restores the dll on startup. I shut down iTunes and deleted the file once more, but this time I created a zero-length file of the same name to take its place. This prevented the original file from being restored when iTunes was started back up. It immediately complained about the “dll” I created, but after dismissing the error, iTunes and Visual Studio both worked just fine.
I could once again listen to The LOST Podcast with Jay and Jack while debugging my code.