LoaderLocker

  • Thread starter Thread starter MAF
  • Start date Start date
M

MAF

I am getting an error message on one of my assemblies. First what is the
LoaderLocker? And how can I get past the error?

Here is the error message and some information I found on the Net.

LoaderLock was detected

Message: DLL
'C:\GVSS0509\EnerPrise.Dashboard\bin\Debug\Prosym_SQLWrapper.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.
 
MAF said:
I am getting an error message on one of my assemblies. First what is the
LoaderLocker? And how can I get past the error?

Here is the error message and some information I found on the Net.

LoaderLock was detected

Message: DLL
'C:\GVSS0509\EnerPrise.Dashboard\bin\Debug\Prosym_SQLWrapper.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.
Are you sure 'Prosym_SQLWrapper.dll' is a pure managed assembly (written in
C# only), IMO it's impossible to execute inside the OS loader lock from a
pure managed assembly, pure managed assemblies do not have a DllMain entry.


Willy.
 
I am getting an error message on one of my assemblies. First what is the
LoaderLocker? And how can I get past the error?

Here is the error message and some information I found on the Net.

LoaderLock was detected

Message: DLL
'C:\GVSS0509\EnerPrise.Dashboard\bin\Debug\Prosym_SQLWrapper.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.

Your dll is not purely managed, and dll deadlock can occur (GC.Collect()
executed while in dll loader critical section.)
 
Back
Top