Date: Fri, 26 Apr 1996 11:21:49 +0200 (IST) From: Eli Zaretskii To: Jag Cc: djgpp AT delorie DOT com Subject: Re: problem with DJGPP and arrays. In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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?