Message 1 of 3
Debug compile causes AutoCAD 2004 run time error
Not applicable
08-04-2005
12:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi folks,
Apologies if this is a newbie question, I've just inherited a
substantial AutoCAD ARX application and I'm new to ARX programming (lots
of useless MicroStation MDL experience though...). I've read through the
ObjectARX docs as well as this newsgroup and haven't seen the same
problem nor had any meaningful Google hits on it.
Anyways, the application I am trying to compile seems to work fine in a
Release compile, but on a debug compile I get an Assertion Failure
window popping up from ACAD.EXE.
In the command history I get the following message:
"Warning: [APPNAME].arx allocates memory from MSVCR70D.DLL, but AutoCAD
uses memory from MSVCR70.DLL.
This may cause problems."
Clicking produces this error:
"[APPNAME].arx is an invalid ARX file."
This occurs as soon as I load the ARX, not when starting the debugger
necessarily.
The application links in several other 3rd party LIB files, but I have
recompiled these as Multi-threaded release LIBs, so I'm not sure why it
is still linking in the debug versions. Do you typically have to
manually exclude the debug LIBs to compile in DEBUG mode?
Is it possible to link to the DEBUG versions of the standard link
libraries? Do the link options for DEBUG have to be substantially
different to the RELEASE options?
Apparently the previous programmer never got the application to compile
in DEBUG mode, so he put a lot of debugging info into an external file.
I'd much rather use the VS debugger interactively if this is possible,
and it certainly seems everyone else here is using the VS debugger
successfully.
Anyone got any ideas?
For the record, I'm compiling using MSVS 2002 .NET with Object ARX 2004
on Windows XP Pro on AutoCAD 2004.
Cheers.
--
Piers Porter
Corporate Montage
http://www.corporatemontage.com.au
Apologies if this is a newbie question, I've just inherited a
substantial AutoCAD ARX application and I'm new to ARX programming (lots
of useless MicroStation MDL experience though...). I've read through the
ObjectARX docs as well as this newsgroup and haven't seen the same
problem nor had any meaningful Google hits on it.
Anyways, the application I am trying to compile seems to work fine in a
Release compile, but on a debug compile I get an Assertion Failure
window popping up from ACAD.EXE.
In the command history I get the following message:
"Warning: [APPNAME].arx allocates memory from MSVCR70D.DLL, but AutoCAD
uses memory from MSVCR70.DLL.
This may cause problems."
Clicking
"[APPNAME].arx is an invalid ARX file."
This occurs as soon as I load the ARX, not when starting the debugger
necessarily.
The application links in several other 3rd party LIB files, but I have
recompiled these as Multi-threaded release LIBs, so I'm not sure why it
is still linking in the debug versions. Do you typically have to
manually exclude the debug LIBs to compile in DEBUG mode?
Is it possible to link to the DEBUG versions of the standard link
libraries? Do the link options for DEBUG have to be substantially
different to the RELEASE options?
Apparently the previous programmer never got the application to compile
in DEBUG mode, so he put a lot of debugging info into an external file.
I'd much rather use the VS debugger interactively if this is possible,
and it certainly seems everyone else here is using the VS debugger
successfully.
Anyone got any ideas?
For the record, I'm compiling using MSVS 2002 .NET with Object ARX 2004
on Windows XP Pro on AutoCAD 2004.
Cheers.
--
Piers Porter
Corporate Montage
http://www.corporatemontage.com.au