Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!brunix!Andrew_Gilmartin@Brown.EDU From: Andrew_Gilmartin@Brown.EDU Newsgroups: comp.sys.mac.hypercard Subject: External Windows and Activate event Keywords: external window,activate event Message-ID: <78140@brunix.UUCP> Date: 11 Jun 91 13:03:42 GMT Sender: news@brunix.UUCP Organization: Brown University Lines: 23 I have been developing an external window for HyperCard 2.x over the last several weeks. One of its features is to send to the card "resumeWindow" and "suspendWindow" messages when HyperCard sends it, respectively, activate and deactivate events. However, if you call SendCardMessage() during an activate or deactivate event HyperCard crashes. I have worked-around this problem by delaying sending the resume- and suspendWindow messages until the next null event. The problem with this work-around is that the resume- and suspendWindow messages should act like resume- and suspendStack in that they don't get sent when the lockmessages has been set to true. My work-around fails to act correctly here because to determine the status of the lockmessages during an activation event requires that I can EvalExpr() which, like SendCardMessage(), causes HyperCard to crash. Unfortunately, I have not yet found a work-around. (Note: HyperCard sets lockmessages to false when it is idle and it is only after this occures that my external window gets a null event.) Has anyone solved this problem? Is HyperCard's crashing the result of a bug? -- Andrew Gilmartin Computing & Information Services Brown University Andrew_Gilmartin@Brown.Edu