<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I got into the state where I could not open a FileList and tracked
    it down to the ToolBuilder default having retained some state from
    an earlier error building a new widget. In particular, the
    &lt;parent&gt; ivar was still pointing to some previous SystemWindow
    and gthat caused error when trying to create the buttons on the
    FileList.<br>
    <br>
    In ToolBuilder, one could add an ensure: to see that parent always
    gets reset:<br>
    <br>
    <font face="Georgia">buildAll: aList in: newParent<br>
      &nbsp;&nbsp;&nbsp; "Build the given set of widgets in the new parent"<br>
      &nbsp;&nbsp;&nbsp; | prior |<br>
      &nbsp;&nbsp;&nbsp; aList ifNil:[^self].<br>
      &nbsp;&nbsp;&nbsp; prior := parent.<br>
      &nbsp;&nbsp;&nbsp; [<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; parent := newParent.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; aList do:[:each| each buildWith: self].<br>
      &nbsp;&nbsp;&nbsp; ] ensure: [</font><font face="Georgia"><font face="Georgia">&nbsp;
        "&lt;&lt;&lt;&lt;"<br>
      </font>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; parent := prior.<br>
      &nbsp;&nbsp;&nbsp; ].</font><br>
    <br>
    but I guess a better question is why Toolbuilder default doesn't
    automatically return a clean builder?<br>
    <br>
    Cheers,<br>
    Bob<br>
  </body>
</html>