PDA

View Full Version : annoying pop-up with DLL.



hunszab
21st Sep 2010, 09:56 am
Hi!
I'm using Vs2008 Win7. I've made a dll class library, everything is working, just when I debug I have add from Autocad I load the dll (netload command), some warning window pops up in the deb_ugger and warns me some outside system calls or whatever...
"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."

I have to click circa 7-10 time to continue, which is a lil' bit tiresome:)
I've enabled in VS the 'Enable just my Code'.
Could somebody help me to fix this problem?
Thanks any help!

Tiger
21st Sep 2010, 10:03 am
Hunszab, I have moved your question to its own thread, please start a new thread for each new question that you have.

hunszab
21st Sep 2010, 03:21 pm
I've found the solution.
The problem can be solved in the same way though, by switching off the MDA:
Debug -> Exceptions -> Managed Debug Assistants
and unchecking the LoaderLock item.