Hwa Jong Oh
You wrote in message news:918spf$3cgqt$
[hidden email]...
> To study why some unknown ShellView(NULL, 'ClassBrowserShell')are not
being
> garbage collected, I have
> created two interesting methods for Object.
>
> #referencingObjects answers a collection of objects that it hold
> as a instance variable.
>
> Object>>referencingObjects
> ...
>...
> #referecedObjects answers a selection of objects that holds 'self' as an
> instance variable from all objects.
>
Can I suggest trying out Object>>allReferences? It should be somewhat
faster.
>
> I'm not really getting a help from this because it cannot tell whether
those
> objects are referenced by the root. Any ideas?
Ah, now that is a tricky problem. I've been meaning to look at the reference
finder in Squeak for some time now to see if it is a useful tool. It
certainly ought to be possible to write something which will find the "root"
references that prevent whole nets of objects from being GC'd.
Regards
Blair