problem while debugging

problem while debugging

Anonymous
Not applicable
395 Views
3 Replies
Message 1 of 4

problem while debugging

Anonymous
Not applicable
I am loading data from MS Access to AutoCAD MTEXT fields. When I run the object arx application I get an "unhandled exception, access violation at memmory ..." error. That is alright and can happen, but when I try debugging using the VC++ IDE, the application runs smoothly without any exceptions. Also this happens on Windows XP only(program runs fine on windows 98). I am using Object ARX for AutoCAD 2000 and VC++ 6.0. If the program crashes when debugging I can pin point the cause, but as mentioned it runs smoothly while debugging.
0 Likes
396 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Does the exception occur only with the release build of your application,
or with the debug build, but only when not running under a debugger? If it
occurs only with the release build, then add debug symbols to the release
build and run it under the debugger. Otherwise, you'll have to include some
diagnostic code to pinpoint the location of the exception without the
debugger attached. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes
Message 3 of 4

Anonymous
Not applicable
The exception occurs both with debug and release builds. I tried adding diagnostic code but could not pin point the part of code that throws exception because at times it occurs at different points. The problem becomes worse as the program runs well in debugger.
0 Likes
Message 4 of 4

Anonymous
Not applicable
Hi!

> The exception occurs both with debug and release builds. I tried
> adding diagnostic code but could not pin point the part of code that
> throws exception because at times it occurs at different points. The
> problem becomes worse as the program runs well in debugger.

Sorry for the late answer, but maybe it still helps you or
somebody else. Before debugging you can force Visual Studio
to throw every exception. For some reason, many exceptions are
suppressed by VS while debugging. So take a look at the
following Menu-Entry: Build > Exceptions...

BR
Markus
0 Likes