Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / May 2006

Tip: Looking for answers? Try searching our database.

'LoaderLock' Issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mohan@tek.com - 24 May 2006 06:38 GMT
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/


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.