🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #16706

GetTrapAddress and SetTrapAddress?

#16706
From: kkim
Date: Wed, 10 Jun 1987 03:29
27 lines
1457 bytes
    I would like to intercept calls to an Operating System or
Toolbox routine (specifically, GetNextEvent) and do some pre- or
post-processing of my own.  GetTrapAddress and SetTrapAddress
seem useful to do it.

    1.  Does anybody have any sample code (in Pascal or C) demonstrating 
the usage of GetTrapAddress and SetTrapAddress?   

    2.  I also have one question.  It is said that

        Since the trap dispatch table can address locations within a
      range of only 64K bytes from the beginning of the system heap,
      the routine you install should be in the system heap.

How can I put my own version in the system heap?


Please e-mail to me.  I will post a summary if there is enough interest.
Thanks in advance.

Kyongsok KIM

Dept. of Computer Science; Univ. of Illinois at Urbana-Champaign

arpanet/csnet: kkim@a.cs.uiuc.edu
usenet/uucp  : {seismo, pur-ee, ihnp4}!uiucdcs!kkim
Technical Details
Message-ID: <164500036@uiucdcsb>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!uiucdcsb!kkim

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!uiucdcsb!kkim
From: kkim@uiucdcsb.UUCP
Newsgroups: comp.sys.mac
Subject: GetTrapAddress and SetTrapAddress?
Message-ID: <164500036@uiucdcsb>
Date: Tue, 9-Jun-87 23:29:00 EDT
Article-I.D.: uiucdcsb.164500036
Posted: Tue Jun  9 23:29:00 1987
Date-Received: Sat, 13-Jun-87 04:49:02 EDT
Lines: 27
Nf-ID: #N:uiucdcsb:164500036:000:900
Nf-From: uiucdcsb.cs.uiuc.edu!kkim    Jun  9 22:29:00 1987