Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!topaz!nike!lll-crg!lll-lcc!qantel!hplabs!hp-sdd!ncr-sd!ncrcae!ncsu!fcstools!paul From: paul@fcstools.UUCP (Paul Perkins) Newsgroups: net.micro.mac Subject: LightSpeed C SetEventMask bug Message-ID: <115@fcstools.UUCP> Date: Sun, 6-Jul-86 14:23:09 EDT Article-I.D.: fcstools.115 Posted: Sun Jul 6 14:23:09 1986 Date-Received: Wed, 9-Jul-86 02:38:34 EDT Organization: Foundation Computer Systems INC., Cary, NC Lines: 14 Beware SetEventMask function in LightSpeed C 1.02. The code for SetEventMask pops a longword from the stack into the SysEvtMask low-memory global at 0x144. Since SysEvtMask is a word, not a longword, this clobbers whatever follows it, which makes the system freeze or crash, not right away, but eventually. I think it may screw up the stack for the calling function too (Pascal calling sequence), but that hardly matters. The work around is to assign to SysEvtMask (defined in EventMgr.h) instead of calling SetEventMask. - Paul Perkins