Mail Archives: djgpp/2000/02/17/02:47:33
> lets say I am at DOS prompt (not DOSBOX in windows)
> and I try to run fractal.exe, it reportst a page fault and
> exits.. now, if I first execute the edit program and edit any
> file (ei. edit foo.txt), even if i dont modify the file, and
> then exit edit and run fractal.exe again it runs perfectly
> without reporting erros.. any guesses as to what is causing this.
Uninitialized variables. Set the crt0 flag to zero (or deadbeef) memory
and you will see reproducible behavior. When it crashes use symify to
identify where you are picking up a bad pointer - probably with an
index from uninitialized memory (malloc'ed or the stack).
Running the previous program leaves different garbage in the memory.
- Raw text -