Red Gate forums :: View topic - Loaderlock problem
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Toolkit Previous Versions
SQL Toolkit Previous Versions forum

Loaderlock problem

Search in SQL Toolkit Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
jmei



Joined: 03 Dec 2007
Posts: 4

PostPosted: Fri Dec 28, 2007 6:50 pm    Post subject: Loaderlock problem Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6678

PostPosted: Fri Dec 28, 2007 9:09 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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