.NET

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

LoaderLock was detected, C# Express 2005

233 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 (233 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 (233 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 (233 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 (233 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!