Freeman Mayberry | 4 Sep 00:47

how do I get rid of things that pointer finder points to?

 
I figured out how to find bad reference to obsolete objects using pointer finder, but I still don't really understand how to hunt it down and get rid of it.

--
Freeman Mayberry
_______________________________________________
Beginners mailing list
Beginners <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Herbert König | 4 Sep 07:58

Re: how do I get rid of things that pointer finder points to?

Hello Freeman,

FM> I figured out how to find bad reference to obsolete objects
FM> using pointer finder, but I still don't really understand how to
FM> hunt it down and get rid of it.

To hunt it down:
ThatClass allInstances inspect gives you an Array with all instances.
I forgot why I stopped using PointerFinder.

To get rid of it:
Open up an Inspector on every Object that references your obsolete
Object. There you set that reference (Ivar) to nil.

The you close all of the inspectors.

After that:
Smalltalk garbageCollect then Smalltalk forgetDoits.

The Swiki has some articles on this, one being "cleanig up junk".

--

-- 
Cheers,

Herbert   
Herbert König | 4 Sep 08:11

Re[2]: how do I get rid of things that pointer finder points to?

Hi

HK> The Swiki has some articles on this, one being "cleanig up junk".

and:

http://wiki.squeak.org/squeak/2631

--

-- 
Cheers,

Herbert   

Gmane