Date: Mon, 29 Dec 1997 10:18:19 +0200 (IST) From: Eli Zaretskii To: Stritt cc: djgpp AT delorie DOT com Subject: Re: "big" arrays in GnuC++ V2 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 28 Dec 1997, Stritt wrote: > In GnuC++ V1 I never had problems with "big arrays", that means for example > > "unsigned char BIG[2000000]" -this should allocate an array of ca 2MB. > > But now, whith Version 2 of GnuC++ und Go32-v2 the Compiler compiles > my program, but when i execute it, it crashes :-(((. You didn't post enough information to identify the cause of your problem. My first guess would be that BIG[] is declared a local array and is therefore overrunning the stack. The DJGPP FAQ list (v2/faq210b.zip from the same place you get DJGPP) explains this problem and workarounds in section 15.9. If the advice in the FAQ doesn't help, post here the shortest program that reproduces the problem.