472,958 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Loader Lock in MFC mixed application

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 'LoaderLock' has detected a problem in
<filename.exe>. Additional Information: 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."

This problem does not occur when I run the same MFC class library
application outside the debugger.

I found a fix on http://support.microsoft.com/kb/913996/en-us. How do I get
this fix ?

Best Regards,

Luis F.
(Indusoft Team)
Jun 16 '06 #1
2 3164
Hi Luis!
I found a fix on http://support.microsoft.com/kb/913996/en-us. How do I get
this fix ?


Isn't it explained in the KB article?
You just need to contact your local MS subsidiary and tell them the
problem and KB article...

Greetings
Jochen
Jun 16 '06 #2

"Luis F. Rodas" <su*****@indusoft.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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 'LoaderLock' has detected a problem in
<filename.exe>. Additional Information: 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."
It's a warning, not an error. Why are you running an MFC application with
Managed Debug Assistants? Are you using .NET components so that you need to
compile with /clr? Without /clr the problem does not exist.

This problem does not occur when I run the same MFC class library
application outside the debugger.
Yes it does, but you do not receive the warning because the check is
disabled.

I found a fix on http://support.microsoft.com/kb/913996/en-us. How do I
get this fix ?

Best Regards,

Luis F.
(Indusoft Team)

Jun 19 '06 #3

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

Similar topics

0
by: Coder-X | last post by:
Hi , i'm trying to lock an application to a specific computer . Can someone tell me the best options to do that ? Read the internal serial number of the hard disk, motherboard, ... ? How can i...
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...
0
by: surendra.rajput | last post by:
Hi, can anyone help me with the code or instructions to write a code to read the HDD sr no and lock my application to this no. for security and piracy protection of my application. Thanks a...
2
by: surendra.rajput | last post by:
Hi, can anyone help me with the code or instructions to write a code to read the HDD sr no and lock my application to this no. for security and piracy protection of my application. Thanks a...
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...
1
by: Claudia Fong | last post by:
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...
4
by: =?Utf-8?B?QldC?= | last post by:
We have a mixed application that includes managed and unmanaged code. Until recently we've been able to remote debug by disabling the security policy to get the MFC managed dlls to load properly...
1
by: nileshchitale | last post by:
Hi, I have a third party unmanged dll in my application which is giving "LoaderLock was detected Message: Attempting managed execution inside OS Loader lock. Do not attempt to run managed code...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.