Mail Archives: djgpp/1999/04/08/11:56:46
On Thu, 8 Apr 1999, Fang wrote:
> changed. Now the program keeps crashing. It gives a "This program has
> executed an illegal operation" or somethnig like that. It gives the
> error right away, so I assume the program isn't getting very deep in the
> code :) I played around with the code for a while, but no matter what I
> do it crashes. I tried multiple reboots, cold boots, etc... any ideas?
Check your automatic variables. DJGPP programs have a 256KB stack (512KB
if you use DJGPP v2.02). If you define a large array that is declared
inside one of the functions, including in the `main' function, when that
array is allocated, it blows the stack.
See section 15.9 of the FAQ for more details.
- Raw text -