Loaderlock problem

jmeijmei Posts: 6
edited December 28, 2007 3:09PM in SQL Toolkit Previous Versions
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.

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    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.
Sign In or Register to comment.