🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #6335

LightSpeed C SetEventMask bug

#6335
From: Paul Perkins
Date: Sun, 06 Jul 1986 18:23
13 lines
1071 bytes
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
Technical Details
Message-ID: <115@fcstools.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!topaz!nike!lll-crg!lll-lcc!qantel!hplabs!hp-sdd!ncr-sd!ncrcae!ncsu!fcstools!paul

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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