.NET

Reply
*Paul Richardson
Message 1 of 5 (223 Views)

LoaderLock was detected, C# Express 2005

223 Views, 4 Replies
03-13-2006 06:37 AM
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
*Paul Richardson
Message 2 of 5 (223 Views)

Re: LoaderLock was detected, C# Express 2005

03-13-2006 06:44 AM in reply to: *Paul Richardson
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
Distinguished Contributor
cgay
Posts: 125
Registered: ‎08-02-2005
Message 3 of 5 (223 Views)

Re: LoaderLock was detected, C# Express 2005

03-13-2006 07:04 AM in reply to: *Paul Richardson
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
*Paul Richardson
Message 4 of 5 (223 Views)

Re: LoaderLock was detected, C# Express 2005

03-13-2006 07:38 AM in reply to: *Paul Richardson
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
*Paul Richardson
Message 5 of 5 (223 Views)

Re: LoaderLock was detected, C# Express 2005

03-17-2006 10:13 AM in reply to: *Paul Richardson
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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community