Mail Archives: djgpp/1995/02/24/20:39:31
> What you should do is compile with the -g switch and then after you get
>the stack dump, run symify (just type "symify a.out") and it'll tell you
>where the bad pointer is. Then go look at your code and try to figure out
>why that pointer might be pointing to NULL.
This helped me quite a lot because when I ran symify I found it had
somehow jumped into another part of the program I soon tracked this
down then to a call to open() with a NULL pointer for the filename.
Though I would have thought open would have trapped this.
Anyway may thank for the pointer.
Nigel Heath
--
Nigel AT nheath DOT demon DOT co DOT uk
nheath AT cix DOT compulink DOT co DOT uk
- Raw text -