Hi there!
I know, that i lost 1 object. How can i get rid of it?
I have a class called "Thing". During development (i do metaprogramming, which work like a charm) i made some mistakes, i guess. Now i wanted to use the nice method "allInstances".
This method shows me the following.
Thing allInstances an Array(a Thing)
So i inspected the "a Thing" and found only 4 Objects pointing an the object
an Inspector an ObjectExplorerWrapper an ObjectExplorerWrapper an ObjectExplorerWrapper
This is because of my inspectors I guess.
Even if i save and reopen my squeak image, i don't lose this _damn_ object. I have no idea, why this instance won't go away.
Is there alway one instance of a class in Smalltalk?
Squeak VM: Squeak3.10.2-7179-win32.zip Image: SqueakByExample-1.3.image
Sorry fo asking this wired stuff. Stephan
Am 19.08.2008 um 19:44 schrieb Stephan Janosch:
Is there alway one instance of a class in Smalltalk?
No, something has a reference to it, otherwise it would be garbage- collected. Try this recipe:
http://wiki.squeak.org/squeak/2631
- Bert -
Thanks, this guide helped me!
I found a weak reference in the system. I deleted the refernce by hand and the bad object is gone.
Looks like the garbage collector did his job well.
Hopefully i produced not more weak references, which are hanging in my system around.
Bye, Stephan
Bert Freudenberg schrieb:
Am 19.08.2008 um 19:44 schrieb Stephan Janosch:
Is there alway one instance of a class in Smalltalk?
No, something has a reference to it, otherwise it would be garbage-collected. Try this recipe:
http://wiki.squeak.org/squeak/2631
- Bert -
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
beginners@lists.squeakfoundation.org