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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Freeman Mayberry
 
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
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

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

Herbert König
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  

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

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

Herbert König
Hi

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

and:

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


--
Cheers,

Herbert  

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners