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

John M McIntosh johnmci at smalltalkconsulting.com
Sat Jul 15 06:39:49 UTC 2000


on 7/14/00 9:43 PM, Ned Konz at ned at bike-nomad.com 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.

Also if you open an object explorer window, then it and all the things you
are exploring lurk even after you close the window. Very annoying, I
attempted a casual look to see why, but ran out of time, it's not quite
obvious who the villain is. Finding the instance of that window (a
systemwindow) and issuing a delete makes them go away. Earlier in May I
found I had 2.7mb of explored data lurking.

--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================
Custom Macintosh programming & various Smalltalk dialects
PGP Key: DSS/Diff/46FC3BE6
Fingerprint=B22F 7D67 92B7 5D52 72D7  E94A EE69 2D21 46FC 3BE6
===========================================================================





More information about the Squeak-dev mailing list