comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Cleaning up inherited object classes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Cleaning up inherited object classes [message #37172 is a reply to message #37171] Wed, 03 December 2003 18:38 Go to previous messageGo to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
Well another way would be to consider it already
when writing your program.
I always have the cleanup method just before the
XX__define procedure. So for every inheritance I immediately add
the superclass cleanup call and for every pointer the ptr_free (object,
obj_destroy) function.

marc

David Fanning wrote:
> Ben Tupper writes:
>
>
>> I would defer to other's on the question if a subclass MUST have its own
>> CLEANUP method. I haven't tried it, but I'm not sure that it does
>> (unless it has its own pointers and objects to cleanup.)
>
>
> I'll tell you this, I have spent an *untold* number
> of hours chasing down memory leaks only to find that
> I forget to call a superclass CLEANUP method from my
> object's CLEANUP method! I've done it so often this
> is the *FIRST* thing I look for when I'm chasing
> memory leaks now.
>
> Who says you can't teach an old dog new tricks?
>
> Cheers,
>
> David
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Active Contours and Snakes! Oh, my!
Next Topic: Re: Active Contours and Snakes! Oh, my!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 19:52:23 PDT 2025

Total time taken to generate the page: 0.80180 seconds