www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/26/04:52:51

Date: Fri, 26 Apr 1996 11:21:49 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jag <gaghon AT nevada DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: problem with DJGPP and arrays.
In-Reply-To: <Pine.OSF.3.91.960425140417.22068C-100000@pioneer.nevada.edu>
Message-Id: <Pine.SUN.3.91.960426111810.26200G-100000@is>
Mime-Version: 1.0

On Thu, 25 Apr 1996, Jag wrote:

> > Are they static (i.e. declared outside any function) or automatic?  If 
> > they are automatic (declared inside a function), then they are allocated 
> > on the stack, and the default stack in DJGPP v2 (is that v2?) is limited 
> > to 256KB.  The DJGPP FAQ list (v2/faq200b.zip from the same place you get 
> > DJGPP) describes how to enlarge the stack in section 15.8, which see.
> 
> They are static variables, declared outside function.  I tried enlarging 
> the stack to 2megs and it still did the same thing.

Then the stack is not related to your problem.  Please post the minimum 
code fragment that is required to see what you are doing, and the exact 
error message that is printed when the program crashes.  Did you check 
that you don't read more data than the length of the arrays?

- Raw text -


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