473,326 Members | 2,175 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Loader lock error message

In my windows form I have a comboBox and a textBox. When I try to write
something in the

textBox it shows me the error message below:

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.

can someone tell me how to avoid this or why is this happenning?

Cheers!

Claudi

*** Sent via Developersdex http://www.developersdex.com ***
Jul 25 '07 #1
1 2421
On Wed, 25 Jul 2007 07:26:25 -0700, Claudia Fong <cd********@yahoo.co.uk>
wrote:
In my windows form I have a comboBox and a textBox. When I try to write
something in the

textBox it shows me the error message below:

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.

can someone tell me how to avoid this or why is this happenning?
I'm not entirely clear on all of the scenarios in which this happens.
Clearly you have something going on besides having a simple form with just
a ComboBox and a TextBox. The MDA exception you're seeing is .NET trying
to detect when you try to call managed code from within some DLL
initialization code. This _could_ deadlock if the managed code in turn
needs to load a DLL.

The only time I've run into it was when I use the
DirectX.AudioVideoPlayback class; it reliably sets this off. As near as I
can tell, the warning is benign.

You can turn the warning off in the Debug/Exceptions... menu under the
Managed Debugging Assistants section. Of course, if you have a real
problem then you could wind up not having it get caught and running into a
deadlock problem later. But I would say that generally speaking, unless
you have some sort of conditional initialization in the DLL that's being
loaded that sometimes could cause another DLL to be loaded and sometimes
might not, then if you really have a problem you'll find out right away
and don't need the MDA to tell you about it.

Of course, if you are not the owner of the code implementing the DLL in
the first place, then there's not much you can do about it. You can
either hope that the DLL author, even though they are executing managed
code, has ensured that doing so won't cause another DLL to be loaded, or
you can avoid using the DLL. Other than that, I'm not sure there's much
else you can do.

Pete
Jul 25 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hari Om | last post by:
Here are the details of my error log files: I execute the command and get following message at console: ---------------------------------------------------------------------- ../sqlldr...
1
by: Roy Chastain | last post by:
I have read and re-read KB 814472. There appears to be a little 1984 New Speak in it. I am referring to option 3. DLL that contains consumers that use managed code and dll exports or managed...
4
by: Marko Becirevic | last post by:
Hi, does anyone know how to bypass bug in .NET framework where NT loader deadlock occurs? It seems to me that using methods like Process.GetCurrentProcess is not safe, and also using mixed dlls...
2
by: Luis F. Rodas | last post by:
When I use the debugger in Microsoft Visual Studio 2005 to debug my Microsoft Foundation Classes (MFC) class library application, I receive an error message: "Managed Debugging Assistant...
4
by: Al Norman | last post by:
We have two separate DLLs that do not interact (directly, at least). One is an MFC extension DLL that was built back in VC++ 6 days (but has been recompiled with VS2005). The other is a DLL that...
6
by: Wilfried Mestdagh | last post by:
Hi, I'm trying out the demo version of FastReports. All is running fine in a small test project. I just copy my code from test project into a large application to demonstrate tomorrow but have...
0
by: cwho.work | last post by:
Hi! We are using apache ibatis with our MySQL 5.0 database (using innodb tables), in our web application running on Tomcat 5. Recently we started getting a number of errors relating to...
5
by: vshalpatel | last post by:
Hi I want to use SQL*Loader , an Oracle-supplied utility to load data from a flat file into one database tables. for this I have write the scripts in the SQL*LOADER control file named ...
5
by: Justin Rich | last post by:
LoaderLock was detected Message: 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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.