| Author |
Message |
jmei
Joined: 03 Dec 2007 Posts: 4
|
Posted: Fri Dec 28, 2007 6:50 pm Post subject: Loaderlock problem |
|
|
Hi,
I created a project using the API for SQL Compare and SQL Data Compare (the licenses.licx is included) and added it to my solution. When my application runs, it loads all the assemblies. But it got the "Loaderlock was detected" problem: DLL 'C:\***\bin\Debug\RedGate.Licensing.Helper.dll' is 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.
Is there anything I can do to avoid this problem?
Thanks,
J. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Fri Dec 28, 2007 9:09 pm Post subject: |
|
|
Hi J,
I find it a bit odd, as this is supposed to be 'fixed' in version 6 of Toolkit (see the announcement at the top of this forum). When .NET 2 started stopping debugging for this exception, we had published a workaround to allow the code to run anyway, but as I said it isn't supposed to happen in any of the v6 libraries.
Hopefully this helps. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group