Am 09.05.2006 um 16:41 schrieb cdrick:

Hi...

I d like to know if there is a way to force garbage collection of objects (still referenced)...

A still referenced object is never garbage-collected. You must cut the reference first, that is, write another object (like nil) into the variable that references your object.

Since it is a bit unpredictable *when* the garbage collector will collect your object after it is not referenced anymore, you can force a GC by "Smalltalk garbageCollect". However, this is mostly useful as an aid in debugging. Only when doing very specific tasks it is necessary to force a GC by code.

- Bert -

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

Reply via email to