I am writting a COM using native C++ (NON-CLR) and a simple TestApp (WPF/C#.net) to call the API functions in the COM. everything works fine. (COM registered and run TestApp in debug/release build)
To debug my COM, I set the command to my TestApp.exe on Property Pages>Configuration Properties>Debugging Category>Command
I also set the Post-Build event to register this COM DLL.
It worked fine for a while, but recently I keep getting the following error
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.
TestApp.exe has triggered a breakpoint
I tried to copy all the DLLs to the same directory of TestApp.exe, but no avail. I also uncheck the LoaderLock item in TestApp Project's Debug -> Exceptions -> Managed Debug Assistants, still no avail.
Searched on internet found a bhotfix for VS2005
View Complete Post