.NET

Reply
*Tony Tanzillo
Message 1 of 4 (80 Views)

Debug Problems

80 Views, 3 Replies
08-30-2005 05:29 PM
When I load a debug build of an assembly into AutoCAD
with the debugger (using NETLOAD), and an exception is
raised in IExtensionApplication.Initialize(), that method
is called a second time, by the interop runtime.

This is making it very difficult to debug initialization code.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
*Albert Szilvasy
Message 2 of 4 (80 Views)

Re: Debug Problems

08-30-2005 08:48 PM in reply to: *Tony Tanzillo
Are you saying that IExtensionApplication.Initialize gets called multiple
times? I can't repro this. Does this happen in all apps?

Albert

"Tony Tanzillo" wrote in message
news:4943615@discussion.autodesk.com...
When I load a debug build of an assembly into AutoCAD
with the debugger (using NETLOAD), and an exception is
raised in IExtensionApplication.Initialize(), that method
is called a second time, by the interop runtime.

This is making it very difficult to debug initialization code.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
Distinguished Contributor
ChrisArps
Posts: 311
Registered: ‎07-29-2004
Message 3 of 4 (80 Views)

Re: Debug Problems

08-31-2005 05:33 AM in reply to: *Tony Tanzillo
I do not have any problem debugging dotnet assemblies in ADT2006 with VS2002.

Can you debug any of the Autocad dotnet samples?

Chris Arps
*Tony Tanzillo
Message 4 of 4 (80 Views)

Re: Debug Problems

08-31-2005 07:10 PM in reply to: *Tony Tanzillo
I'll see if I can come up with a [simple] reproducible case.

I used an invalid format string in string.Format()
and the exception was caught by the loader, and
the Initialize() function was reentered, with a
somewhat different call stack, but still coming from
acdbmgd.

I may have overstated the significance of this as
it does not really make debugging difficult, so long
as you know that the exception can result in a
second call to Initialize().

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Albert Szilvasy" wrote in message news:4943728@discussion.autodesk.com...
Are you saying that IExtensionApplication.Initialize gets called multiple
times? I can't repro this. Does this happen in all apps?

Albert

"Tony Tanzillo" wrote in message
news:4943615@discussion.autodesk.com...
When I load a debug build of an assembly into AutoCAD
with the debugger (using NETLOAD), and an exception is
raised in IExtensionApplication.Initialize(), that method
is called a second time, by the interop runtime.

This is making it very difficult to debug initialization code.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

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