Trying to load in OSProgramLock execution hostingCode. Do not try to run the managed code in the dllmain or image initialization function. This will cause the application to be suspended..
42 powerful debugging assistants (MDA,Loaderlock
Is one of them. Loaderlock detects a loader in an operating system.
The status of hosting code running on the lock thread (the video running thread in the preceding example. This may cause deadlocks and may be used before the operating system loader initializes the DLL. Although
This is necessary, but it is too troublesome for development and debugging.
This is because a specific resource is being loaded: for example, when the skin swap Control
- Debug the vs2005 menu-> exception-> managed debuggin assistants-> loaderlock
Removed from the selected status
- If the exception item does not exist, select Debug on the left of tool --- custom --- command tab --- Debug on the right and place the exception in the menu.
- Press CTRL + ALT + e to modify the selected status of managed debuggin assistants-> loaderlock.
- Add a string under HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \. netframework with the value "0"
However, in this case, all development based on. net2.0 on this computer will not benefit from MDA.