.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LoaderLock was detected, C# Express 2005

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
507 Views, 4 Replies

LoaderLock was detected, C# Express 2005

I changed the 'projectname.csproj.user' file as follows

Program
C:\Program Files\Autodesk Architectural Desktop
2006\acad.exe


This works great but I get the following error when debugging.

error...
"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 the application to hang."

I can can click the error dialog's continue button to continue with no
problem but I rather know why it happens.
How can I avoid this dialog?
--
Tks - Paul
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

It actually keeps throwing the exception when
you start debugging. Any work around?

--
Tks - Paul
"Paul Richardson" wrote in message
news:5109107@discussion.autodesk.com...
I changed the 'projectname.csproj.user' file as follows

Program
C:\Program Files\Autodesk Architectural Desktop
2006\acad.exe


This works great but I get the following error when debugging.

error...
"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 the application to hang."

I can can click the error dialog's continue button to continue with no
problem but I rather know why it happens.
How can I avoid this dialog?
--
Tks - Paul
Message 3 of 5
cgay
in reply to: Anonymous

Paul,

See here....

http://msdn2.microsoft.com/en-us/library/d21c150d(VS.80).aspx

Also, this was discussed here....

http://discussion.autodesk.com/thread.jspa?messageID=5041866

C
Message 4 of 5
Anonymous
in reply to: Anonymous

Thanks. There was a link to this page on the
error dialog. Plowing through it now. Will
report back if/when I figure it out.

--
gl - Paul
wrote in message news:5109136@discussion.autodesk.com...
Paul,

See here....

http://msdn2.microsoft.com/en-us/library/d21c150d(VS.80).aspx

C
Message 5 of 5
Anonymous
in reply to: Anonymous

look at Jimmie Fulton's post below ".Net 2.0 errors with ADT2006"

Here is his answer...
<>
OK, here is what is required to run VS2005 with AutoCAD 2006. In VS2005, go
to the Debug->Exceptions menu. Within the Exceptions dialog expand the
"Managed Debugging Assistants" node. Look for LoaderLock and uncheck the
"Thrown" column.

Do not disable all MDAs by setting MDA="0" in the registry as it causes
problems.

Hope this helps.

--
gl - Paul
"Paul Richardson" wrote in message
news:5109155@discussion.autodesk.com...
Thanks. There was a link to this page on the
error dialog. Plowing through it now. Will
report back if/when I figure it out.

--
gl - Paul
wrote in message news:5109136@discussion.autodesk.com...
Paul,

See here....

http://msdn2.microsoft.com/en-us/library/d21c150d(VS.80).aspx

C

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost