realbasic-plugins
[Top] [All Lists]

Re: Class destructors

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Class destructors
From: Norman Palardy <palardyn at shaw dot ca>
Date: Mon, 14 Mar 2005 15:20:22 -0700
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <S dot 0000470018 at mail dot tempel dot org>

On Mar 14, 2005, at 3:00 PM, Thomas Tempelmann wrote:

Norman Palardy wrote:

BUT, class2Vars destructor is not being called IF there already is an
instance.

Have you considered the possibility that all the "leaking" objs are only
destructed when you leave the method in which they were constructed?

Thanks ... this twigged something so I watched for when objects get destroyed in a loop like this.

In a loop I'm seeing

iteration 1
        construct 1

next iteration

        construct 2
        destroy 1 (as part of the assignment I assume)

next iteration

        construct 3
        destroy 2

and the destruction of 3 is happening much later on in the testing method than I had expected

That last one gets destroyed when things go out of scope

Sorry for the stupid qiuestions

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>