www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/08/11:56:46

Date: Thu, 8 Apr 1999 17:54:03 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Fang <fang0654 AT mypad DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: djgpp under win98
In-Reply-To: <370C9E61.81A535DA@mypad.com>
Message-ID: <Pine.SUN.3.91.990408175014.27027A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019