realbasic-nug
[Top] [All Lists]

Re: Circular reference powers used for good?

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Circular reference powers used for good?
From: "Adam Shirey" <adam dot shirey at gmail dot com>
Date: Mon, 31 Dec 2007 16:48:57 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <1F31400A-2192-40FA-B482-EAAD05F0C530 at oxalyn dot com> <D38D342E-2E3A-4923-91B8-5B3596AC3F24 at mac dot com> <ECFA5F77-335B-4229-A4A1-6E2F85937D76 at sentman dot com>
On Dec 31, 2007 4:37 PM, James Sentman <james at sentman dot com> wrote:

>
> I take back what I said about it being fishy ;) I also agree with
> those that said it would work. I would think it would be easy to test
> to be sure.
>

Sure enough, it appears abandoned groups of circularly-referenced objects
are indeed kept. I was under the impression that they were discovered and
destroyed.

A single myTimer object that updates Window1.Title on a regular basis fails
to run even once after instantiation. Add a property "other as myTimer" to
the class, create two and set the references and away they go -- lost to the
programmer, but still running.


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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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