[Q] How to dispose of SystemWindow's? They never seem to go away!

Karl Ramberg karl.ramberg at chello.se
Sat Jul 15 10:21:55 UTC 2000


When I do on my daily 2.9 work image with one morphic project without windows in it:

SystemWindow allSubInstances size => 92

on a 'clean' 2.9 image I get 13.

I'll try the breakDependents to see if I can clean up a little.
Thanks for the tip.

Karl

Ned Konz wrote:
> 
> Bob Arning wrote:
> 
> > I don't know how many you are seeing, but a number of them are perfectly normal. Some are in various projects in the initial MVC project. Some are prototypes in the right-hand global flap. Also, by sending #openInWorld, you may have removed them from places they belong.
> >
> > How many was it, BTW?
> 
> Well, removing the ones that the image came with (that I know about),
> or that I created, I have (this is the stock image that I got, a 2440
> image from
> the 'net somewhere):
> 
> a SystemWindow('TTSampleString' 2882)
> a SystemWindow('arupa 520:Desktop Folder:Squeak2.8a-beo Folder' 3172)
> a SystemWindow('Changes go to "Unnamed1"' 128)
> a SystemWindow('ChangeSet: 2073buttonRowClip-sw' 411)
> a SystemWindow('Selector Browser' 2905)
> a SystemWindow('assembly' 98)
> a SystemWindow('scripting area' 1216)
> a SystemWindow('System Browser' 2509)
> a SystemWindow('Package Browser' 2235)
> a SystemWindow('Workspace' 658)
> 
> What's weird about this is that these windows don't get garbage
> collected, even
> after being closed.
> 
> When I've been working for a while, I get many more. Last time I looked,
> it was
> about 24. Of these, 7 went away finally when I sent "breakDependents" to
> them.
> 
> Some are being pointed at by globals or class variables (like, for
> instance,
> the FreeCell high-score window).
> 
> I don't know how windows/morphs are supposed to break their
> dependencies;
> is there a specific set of messages that need to be responded to? I've
> seen
> #delete and #release but don't know what each are supposed to do or when
> they
> get called.
> 
> --
> Ned Konz
> currently: Stanwood, WA
> email:     ned at bike-nomad.com
> homepage:  http://bike-nomad.com





More information about the Squeak-dev mailing list