From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP HELP!!! Date: 24 May 1997 07:45:42 GMT Organization: The National Capital FreeNet Lines: 42 Message-ID: <5m66b6$i03@freenet-news.carleton.ca> References: <01bc6797$1470f140$0a2637cb AT daniel133> Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet2.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk "Daniel Krenn" (dkrenn AT usa DOT net) writes: > 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. > > /////////////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) You are putting 320000 bytes on the goddamned stack! Try static FOO Crash[200]; Or, stubedit the stack bigger. (I guess the stack is more than 160000 but less than 320000 bytes by default?) -- .*. Where feelings are concerned, answers are rarely simple [GeneDeWeese] -() < When I go to the theater, I always go straight to the "bag and mix" `*' bulk candy section...because variety is the spice of life... [me] Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh