I have an app that uses unmanaged code in the form of an OCR
dll. The OCR sometimes spends a lot of time without
relinquishing control and that seems to be causing me to get a
"LOADERLOCK" exception. I tried setting the environment
variable COMPLUS_MDA=0 as suggested in the documentation but that made
no difference. I then set the registry value
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework] "MDA"="0" as also
suggested and that worked better. (Ididn't crash so quickly).
However I really don't know what the error means or why I am doing
these things and especially don't know if this exception will arise in
a production version. Can anyone tell me what the future
might hold in the area of this exception arising in my app
thanks
jim murray

loader lock
akira32
Lars E.Nes
Is there an exception thrown that I can catch and restart the OCR
Is this problem being worked on
Aquilo
You probably got the LoaderLock warning from an "MDA", a Managed Debugger Assistant. Unfortunately, this assistant tends to give false warnings. It sees a DLL using the framework when it gets loaded but doesn't realize that it is already initialized by your main program and thus cannot cause a loader lock. Just ignore the warning. Or check the link I gave in this thread to see how to disable it.