Yes, this will happen, as you have so seen.  The MIAW cannot tell the stage 
to forget the MIAW while the MIAW is in the process of giving the command 
to do so.  Basically, you're pulling the rug out from under the feet of the 
MIAW while it's in the middle of a call.

You can set up very elaborate object/timing stuff as has been mentioned, 
but frankly I just do this in the MIAW:

global gWindowToKill
gWindowToKill =the activeWindow

And in the stage, in an idle handler or exit frame or whatever works for 
your architecture:

on idle
   global gWindowToKill
   if (not voidP(gWindowToKill)) then
      forget gWindowToKill
      gWindowToKill =VOID
   end if
end

Clean, little enough overhead, and works like a charm.

- Tab


At 03:49 PM 11/16/00 -0600, Mike Hiatt wrote:
>I'm opening a MIAW from my projector. I have a close routine (x
>in the upper right) with the following code
>
>on mouseUp
>   tell the stage to closeMiaw
>end
>
>and in my main movie...
>
>on closeMiaw
>   if ilk(gMyMiaw) <> #window then exit  -- MIAW is not opened so
>exit
>   close gMyMiaw                         -- close MIAW
>   forget gMyMiaw                        -- forget MIAW so you can
>edit the MIAW when projector is still running
>   --  set the visible of the stage = TRUE   -- make the stage
>visible again
>end closeMiaw
>
>my problem is if I try to close the MIAW before it has actually
>started I get the following error:
>
>FIELDVUE caused an invalid page fault in
>module IML32.DLL at 0187:6906bc9e.
>Registers:
>EAX=00000001 CS=0187 EIP=6906bc9e EFLGS=00210202
>EBX=02cea208 SS=018f ESP=0062ee6c EBP=004df638
>ECX=00000001 DS=018f ESI=02ceade4 FS=72c7
>EDX=ffffffff ES=018f EDI=004f8750 GS=0000
>Bytes at CS:EIP:
>66 8b 41 10 8b d0 81 e2 f8 ff 00 00 81 fa d0 ca
>Stack dump:
>004df55c 02ceade4 00000000 02cea208 6900678d 004df638 68017e01
>004df638 02ceade4 00000000 00000000 00000000 01389b48 00000020
>00000020 69010dd3
>
>any ideas on how to get around this?
>
>Thanks
>
>Mike
>
>
>[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