www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/29/06:23:43

Date: Wed, 29 Dec 1999 10:19:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Erik Anell <pintie AT telia DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: SIGSEGV
In-Reply-To: <U55a4.47$Nn6.170765312@newsa.telia.net>
Message-ID: <Pine.SUN.3.91.991229101935.11728O-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 Tue, 28 Dec 1999, Erik Anell wrote:

> I was for starters only going to make zeros everywhere in the array
>  double something[300][300][2])
> then the screen just went black and stayed black...

"double something[300][300][2]" requires 180,000*8 = 1,440,000 bytes
of stack space.  DJGPP programs by default have only 512KB of stack,
so your program overflows the stack and crashes.

See section 15.9 of the DJGPP FAQ list for more details, and for
suggested solutions.

- Raw text -


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