Mail Archives: djgpp/1997/05/23/23:48:16
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 -