From: Prashant TR To: MM Subject: Re: Array crashes my program! Date: Wed, 5 Jan 2000 08:45:02 +0500 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: <38729762 DOT 6F966CF7 AT netcom DOT ca> In-Reply-To: <38729762.6F966CF7@netcom.ca> Cc: djgpp AT delorie DOT com MIME-Version: 1.0 Message-Id: <00010508465200.00582@yahoo> Content-Transfer-Encoding: 8bit Reply-To: djgpp AT delorie DOT com On Wed, 05 Jan 2000, MM wrote: > int main (void) > { > int array[1000000]; > return (0); > } > > continually crashes my program. Naturally. The array is huge (around 2MB) and you are runnoing out of stack space. Declare it global. Otherwise, use stubify and change the size of the stack. Prashant --------------------------------------------------- One pound of learning requires ten pounds of common sense to apply it.