From: "Santing, Peter" Newsgroups: comp.os.msdos.djgpp Subject: Re: trouble with classes (for me a unexplainable crash) Date: Fri, 20 Apr 2001 14:29:23 +0200 Message-ID: <987769258.17780.0.pluto.d4ee1e86@news.demon.nl> References: <987710007 DOT 24446 DOT 0 DOT pluto DOT d4ee1e86 AT news DOT demon DOT nl> <987712178 DOT 25575 DOT 0 DOT pluto DOT d4ee1e86 AT news DOT demon DOT nl> NNTP-Posting-Host: santi.demon.nl X-NNTP-Posting-Host: santi.demon.nl:212.238.30.134 X-Trace: news.demon.nl 987769258 pluto:17780 NO-IDENT santi.demon.nl:212.238.30.134 X-Complaints-To: abuse AT nl DOT demon DOT net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Lines: 49 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Question:.. how big is the stack anyway??? Best Regards, Peter Santing Norberto Alfredo Bensa schreef in berichtnieuws OE62xc1o8yfogkJXrRj00002159 AT hotmail DOT com... > Perhaps object3d is too big to fit in the stack... 68(bytes)*10000 = > ~664KBytes > > Best regards, > Norberto > > > > > ----- Original Message ----- > From: "Santing, Peter" > Newsgroups: comp.os.msdos.djgpp > To: > Sent: Thursday, April 19, 2001 5:38 PM > Subject: Re: trouble with classes (for me a unexplainable crash) > > > > It seems that I fixed it.. although I do not understand why this method > > works and my old one not:- > > > > I have changed the following line into 2 lines:- > > > > object3d mypoly; > > > > into... > > > > object3d *mypoly; > > mypoly = new object3d; > > > > and every mypoly.xxxxxxxx ref to mypoly->xxxxxxx. > > > > it does the same and it seems to be working.. > > > > if anyone knows why this works and the old method not.. please post your > > answer.. I want to know why.. > > > > Regards, > > Peter Santing > > >