Mail Archives: djgpp/1997/04/08/07:16:48
On Mon, 7 Apr 1997, Schuster wrote:
> But after a system reboot my program runs without problems and can be
> envoked several times without any problems.
>
> As soon as I start the compiler again, the program crashes again.
> Any ideas?
The most probable cause is that you are dereferencing a pointer into
an uninitialized memory. After a reboot, most of memory is zeroed,
but after you run a compiler, it contains random values which are left
over from the compiler run.
You should debug your program near the point where it crashes to find
the exact reason. The register listing and the stack traceback
printed when the program crashes are the point to begin your
debugging. Use the `symify' program (described in section 9.2 of the
DJGPP FAQ list) to translate those numbers into a human-readable
stuff.
- Raw text -