delorie.com/archives/browse.cgi | search |
From: | Floris van den Berg <fvdberg AT hub DOT nl> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Class Problems |
Date: | Wed, 30 Dec 1998 13:41:27 +0100 |
Organization: | WorldOnline News server |
Lines: | 23 |
Message-ID: | <368A1F77.7B2893B2@hub.nl> |
References: | <3689FD85 DOT B65BEAB9 AT mailbox DOT uq DOT edu DOT au> |
NNTP-Posting-Host: | 195.240.6.89 |
Mime-Version: | 1.0 |
X-Trace: | news.worldonline.nl 915021686 19308 195.240.6.89 (30 Dec 1998 12:41:26 GMT) |
X-Complaints-To: | abuse AT worldonline DOT nl |
NNTP-Posting-Date: | 30 Dec 1998 12:41:26 GMT |
X-Mailer: | Mozilla 4.05 [nl] (Win95; I) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Such errors usually occur when you try to delete a non existing object. I had such an error yesterday when i declared an array of objects like -- myobject *index[100] -- new index[1] and then try to delete another one -- delete index[2] (ofcourse that code wasn't as stupid as this one, but the idea's the same). Anyway: try to put some text into your constructors and destructors and see how it's called. That did the trick for me. And remember that if you have a virtual method into your object, to declare the destructor virtual as well. Floris > I made a program with DJGPP. After it exits it displays the text on the > end of this message (symify'd) > > This stops if one of the classes is removed from initilizing.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |