> When closing a MIAW, is it necessary to void a global variable for it > after you do the close() and forget() methods on it? > > In other words... > > -- gVow is a global referring to window("Garbage") > -- closing the MIAW: > > gVow.close() > gVow.forget() > > -- now, is this necessary: > gVow = VOID > -- ...or does the close and forget already make that void?
When you forget the window object your reference to the window is invalidated and should be set to zero. From my Message Window in DirMX: x = window("foo") put x -- (window "foo") x.forget() put x -- 0 So the setting of the variable to VOID is not strictly required but it serves to bullet-proof your code against possible Director garbage collection bugs (that don't currently exist AFAIK but may have in previous releases). Cheers, Tom Higgins Product Specialist - Director Team Macromedia ... MAX, the 2003 Macromedia User Conference November 18-21, Salt Lake City, Utah Register today at http://www.macromedia.com/go/max/ ... > -----Original Message----- > From: Mendelsohn, Michael [mailto:[EMAIL PROTECTED] > Sent: Friday, September 19, 2003 10:17 AM > To: [EMAIL PROTECTED] > Subject: <lingo-l> MIAWs: close, forget....and VOID? > > > Hi list... > > > Thanks, > Michael M. > > [To remove yourself from this list, or to change to digest > mode, go to http://www.penworks.com/lingo-l.cgi To post > messages to the list, email [EMAIL PROTECTED] (Problems, > email [EMAIL PROTECTED]). Lingo-L is for learning and > helping with programming Lingo. Thanks!] > [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]