470,841 Members | 1,140 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,841 developers. It's quick & easy.

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 3008
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Coder-X | last post: by
1 post views Thread by Roy Chastain | last post: by
reply views Thread by surendra.rajput | last post: by
2 posts views Thread by surendra.rajput | last post: by
6 posts views Thread by Wilfried Mestdagh | last post: by
1 post views Thread by Claudia Fong | last post: by
1 post views Thread by nileshchitale | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.