From: "Santing, Peter" Newsgroups: comp.os.msdos.djgpp Subject: Re: trouble with classes (for me a unexplainable crash) Date: Thu, 19 Apr 2001 22:38:01 +0200 Message-ID: <987712178.25575.0.pluto.d4ee1e86@news.demon.nl> References: <987710007 DOT 24446 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 987712178 pluto:25575 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: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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