"mohan (AT) tek (DOT) com" <mohan (AT) tek (DOT) com> wrote:
Quote:
"Managed Debugging Assistant 'LoaderLock' has detected a problem in
'F:\VBSource\bin\Debug\TekRobo.exe'.
Additional Information: DLL 'F:\VBSource\bin\Debug\Tekspyhook.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."
How to resolve the above Issue? |
Move the managed code in the DLL out of DllMain, into some routine that
you can call later to initialize the DLL.
-- Barry
--
http://barrkel.blogspot.com/