Hi All,<div><br></div><div> through a combination of the windows menu and oldKeyboardFocus and oldMouseFocus the DockingBarMorph holds onto closed windows. Repeat by e.g.</div><div><br></div><div>- inspect a new instance of some class that has no instances (ZeroDivide works for me).</div>
<div><br></div><div>- Click on the Windows menu to populate it (it should include the ZeroDivide inspector).</div><div><br></div><div>- Close the inspector, run the GC (e.g. ask for space left).</div><div><br></div><div>- Then check the class's instance count (ZeroDivide instanceCount). Should be non-zero.</div>
<div><br></div><div>- Inspect the instance (ZeroDivide allInstances inspect) and do chase pointers and you'll get a reference back through the DockingBarMorph:<br clear="all"><div><br></div><div><div>globals: SystemDictionary</div>
<div>#World -> PasteUpMorph</div><div>submorphs: Array</div><div>2: DockingBarMorph</div><div>oldKeyboardFocus: TextMorphForEditView</div><div>editView: PluggableTextMorphPlus</div><div>model: Inspector</div><div>object: ZeroDivide</div>
</div><div><br></div><div>- To clear, open the WIndows menu again (which now doesn't show the closed inspector) and run GC. Now check instanceCount and it is back to zero.</div><div><br></div><div>This is annoying because it can hold onto large objects. I guess when morphs are deleted from the world they ought to clear themselves from the DockingBarMorph. But I'm a bit nervous about making such a change, and hence thought I'd run it by the list first.</div>
-- <br>best,<div>Eliot</div><br>
</div>