LoaderLock was detected, C# Express 2005

LoaderLock was detected, C# Express 2005

Anonymous
Not applicable
643 Views
4 Replies
Message 1 of 5

LoaderLock was detected, C# Express 2005

Anonymous
Not applicable
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
0 Likes
644 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
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
0 Likes
Message 3 of 5

cgay
Enthusiast
Enthusiast
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
0 Likes
Message 4 of 5

Anonymous
Not applicable
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
0 Likes
Message 5 of 5

Anonymous
Not applicable
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
0 Likes