Date: Thu, 8 Apr 1999 17:54:03 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Fang cc: djgpp AT delorie DOT com Subject: Re: djgpp under win98 In-Reply-To: <370C9E61.81A535DA@mypad.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.