SQL Comparison SDK

Latest version: 10.0

SQL Comparison SDK

Knowledge Base

RedGate.Licensing.Helper.dll is attempting managed execution inside OS Loader lock

Category: Troubleshooting & error messages
Date: 28 Jan 2009
Product: SQL Comparison SDK
Versions: 3,4,5,6.0
Fix Version: 6.2

When debugging SQL Comparison SDK code in Visual Studio 2005, an error may occur on the Database constructor method ( db1=new Database).

DLL 'D:\MyProject\bin\Release\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.

This error message is not critical and is caused by Managed Debugging Assistants (MDAs) introduced in Microsoft .NET 2.0. To prevent this error from stopping your code, disable Loader lock:

In Visual Studio, click the Debug menu, then select Exceptions. Locate
'Loader Lock' under 'Managed Debugging Assistants'. De-select 'Thrown'.

Note that this may not work if the loaderlock is actually causing two threads to deadlock for resources.

This message should not appear in version 6.1 and up of the Red Gate SQL Comparison SDK.

Document ID: KB200708000127 Keywords: SQL,Compare,LoaderLock

Was this article helpful?

Search support
Forums

SQL Comparison SDK

all SQL products

all products