home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18511 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.0 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!concert!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!frmop11!barilvm!bimacs!liran
  2. From: liran@bimacs.BITNET (Eshel Liran)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: patching GetResource
  5. Message-ID: <4453@bimacs.BITNET>
  6. Date: 15 Nov 92 12:35:46 GMT
  7. Organization: Math & CS, BarIlan U, Ramat-Gan, Israel
  8. Lines: 16
  9.  
  10. I wrote a small INIT which is supposed to patch GetResource.
  11. The problem is that at install time when I get the trap's
  12. address, the address I get is of a code resource, and not
  13. equel to the address I see when I type _GetResource in
  14. MacsBug.
  15. My guess is that some other code resource patched the trap
  16. before me (who could it be when I am using a minimal sys 7 ?)
  17. At patch time when I try to reference the trap's address I
  18. got at install time, the address is not relevant any more,
  19. and I can't call the 'old' GetResource from my 'new' GetResource.
  20.  
  21. Any Ideas ?
  22. Thanks,
  23. Liran Eshel,
  24. Bar-Ilan University, ISRAEL
  25. liran@bimacs.cs.biu.ac.il
  26.