Hi all,
I have ported my VB.Net project from VS2003 to VS2005. I am using some
unmanaged code in my project. while running my application,Iam getting
the following error
"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?
it would be greatful ,if any one help me to resolve ..
issues.
Thanks
Mohan
Barry Kelly - 24 May 2006 07:41 GMT
> "Managed Debugging Assistant 'LoaderLock' has detected a problem in
> 'F:\VBSource\bin\Debug\TekRobo.exe'.
[quoted text clipped - 5 lines]
>
> 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

Signature
http://barrkel.blogspot.com/