.NET

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

Debug Problems

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

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.