Debug Problems

Debug Problems

Anonymous
Not applicable
486 Views
3 Replies
Message 1 of 4

Debug Problems

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

Anonymous
Not applicable
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:[email protected]...
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
0 Likes
Message 3 of 4

Anonymous
Not applicable
I do not have any problem debugging dotnet assemblies in ADT2006 with VS2002.

Can you debug any of the Autocad dotnet samples?

Chris Arps
0 Likes
Message 4 of 4

Anonymous
Not applicable
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:[email protected]...
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:[email protected]...
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
0 Likes