Topic: Memory, pointers debugger aid


Author: aabdalla@pollux.usc.edu (AAA)
Date: 12 Sep 1993 12:07:44 -0700
Raw View
Hi, in this relatively small C++ project I'm working on, some very random
wierd errors started occurring and it eventually turned out to be
accessing a function thru a NULL pointer.  Sigh.  Anyway, it was quite
difficult to track down, and *Deeper sigh* I just added a whole lot of
code to the project and similar symptoms started occurring.

So here's what I'm looking for: I read in a couple of programming
magazines that there exists certain 'memory debuggers' which aid in
the tracking down of array overflows, illegitimate pointer accesses
(thru NULL pointers is what I definitely need), etc.  However, I've
never used any of these tools: can anyone recommend a particular tool
which meets my needs?

Also, are there any 'safe programming' techniques which are used to
avoid errors like this?  Short of switching to another language :-)

By the way, my platform: DOS on an IBM-compatible using Borland C++ 3.1

A big thanks.  Please send email.

AAA