[Newbies] Remove old instances of a Class
Bert Freudenberg
bert at freudenbergs.de
Sun May 25 20:50:45 UTC 2008
On 25.05.2008, at 00:19, Rob Rothwell wrote:
> On Sat, May 24, 2008 at 5:54 PM, Claus Kick <claus_kick at web.de> wrote:
> why not just do
>
> MyClass allInstances do:[:i | i := nil].
> Smalltalk unusedMemory.
>
> Huh...I've tried that too. I've closed all my Workspaces, set all
> instances to nil, and garbageCollectMost'ed...
garbageCollectMost only collects, as the name implies, most garbage,
not all. For a full GC use garbageCollect.
- Bert -
More information about the Beginners
mailing list