www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/23/23:48:16

Date: Fri, 23 May 1997 22:49:05 -0500 (CDT)
From: Andrew Deren <aderen AT eecs DOT uic DOT edu>
To: Daniel Krenn <dkrenn AT usa DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: DJGPP HELP!!!
In-Reply-To: <01bc6797$1470f140$0a2637cb@daniel133>
Message-ID: <Pine.SUN.3.95.970523224740.14202A-100000@ernie.eecs.uic.edu>
MIME-Version: 1.0

On 23 May 1997, Daniel Krenn wrote:

> From: Jeroen Cranendonk <crandonk AT doge DOT nl>
> The next sniplet of code keeps giving large error messages, is there
> something that one shouldn't be doing in it, any help would be greatly
> appreciated.

You are probably running out of stack space
Try dynamicly allocating those objects:
main() {
FOO *crash[200];
for (int i=0; i<200; i++) crash[i] = new FOO;
return (0);
}

> 
> /////////////code//////
> struct Rectangle
> {
>   int x1,y1,x2,y2;
> };
> 
> class FOO
> {
>   protected:
>     Rectangle dakp[100];
> };
> 
> main()
> {
>   FOO Crash[200]; // 100 and it does'nt crash
>   return(0);
> }
> 
> ////////fini//////////////
> i'm using djgpp 2.?? , dos or win95 , rhide , 64mb ram , pentium , load
> of harddisk .
> it gives an error before it exits ( returns 255 , not 0 , and gives a
> load of text)replys please by e-mail ( and newsgroup for the benefit of
> others, but i won't find it there)
> 
> 
> 
> 

- Raw text -


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