There was an extensive discussion of this subject around 3/23/2001. Search 
the Lingo-L archives for the phrase "closing miaw windows" (in the subject 
line). The archives are at http://www.mail-archive.com/lingo-l@penworks.com/

The essence of the issue is that the stage must close the MIAW, not the 
MIAW itself (although some members reported trouble-free operation with 
"forget the activeWindow" in the MIAW itself).

It is important to realize that if a handler in the MIAW tells the stage to 
forget the MIAW, that is not the same as the stage originating that 
command, because execution still tries to return to the MIAW--and it's no 
longer there, hence a crash. You'll know more when you read the archives.

The most elegant solution suggested at the time that I have adopted is to 
have the MIAW start a timeout object in the stage, and have that timeout 
object issue the forget command.

Slava

At 11:34 AM 7/31/2001 -0700, you wrote:
>I have a problem with a project and a number of its MIAWs.  I have tried a
>number of ways to close an MIAW
>------------------------
>GLOBAL myMIAW
>
>on mouseDown
>tell the stage to forget myMIAW
>end
>--------------------
>
>on mouseDown
>
>tell the stage to forget window "myMIAW"
>end
>-------------------
>
>on mouseDown
>forget window "myMIAW"
>end
>----------------
>and none of these have worked.  Has anybody had a similar problem and been
>able to solve it?  Thanks.
>
>John Sproul
>Vision Technologies Group
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/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/LUJ/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!]

Reply via email to