Date: Fri, 23 May 1997 22:49:05 -0500 (CDT) From: Andrew Deren To: Daniel Krenn cc: djgpp AT delorie DOT com Subject: Re: DJGPP HELP!!! In-Reply-To: <01bc6797$1470f140$0a2637cb@daniel133> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 23 May 1997, Daniel Krenn wrote: > From: Jeroen Cranendonk > 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) > > > >