home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15295 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.8 KB

  1. Path: sparky!uunet!mcsun!uknet!qmw-dcs!jeremyr
  2. From: jeremyr@dcs.qmw.ac.uk (Jeremy Roussak)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Patching the _Launch Trap
  5. Message-ID: <1992Sep10.175427.5047@dcs.qmw.ac.uk>
  6. Date: 10 Sep 92 17:54:27 GMT
  7. References: <1992Sep8.024049.20121@Arco.COM> <abrn6k+.leonardr@netcom.com> <BuA3vu.97H@taligent.com> <1992Sep9.172136.13700@dcs.qmw.ac.uk> <BuCLzq.A7z@taligent.com>
  8. Sender: usenet@dcs.qmw.ac.uk (Usenet News System)
  9. Organization: Computer Science Dept, QMW, University of London
  10. Lines: 30
  11. Nntp-Posting-Host: sequent.dcs.qmw.ac.uk
  12.  
  13. In <BuCLzq.A7z@taligent.com> keith@taligent.com (Keith Rollin) writes:
  14.  
  15. >In article <1992Sep9.172136.13700@dcs.qmw.ac.uk>, jeremyr@dcs.qmw.ac.uk (Jeremy
  16. >Roussak) writes:
  17. >>
  18. >> The other problem with patching _InitGraf is that it doesn't
  19. >> move memory, so neither can (should) your patch. We won't get
  20. >> into the "all traps move memory because of patches" here! You
  21. >> can argue that unexpectedly moving memory within _InitGraf
  22. >> probably won't matter because of the way in which apps call it,
  23. >> but it's a little unsafe. _InitFonts, on the other hand, does
  24. >> move memory and is usually called immediately after _InitGraf.
  25.  
  26. >You make a good point concerning patching _InitGraf. I had thought about it at
  27. >the time, but went ahead and patched it, figuring that I was safe for the
  28. >reasons you gave.
  29. >>
  30. >> When is _InitAllPacks called?
  31. >>
  32.  
  33. >After your application is loaded, but just before its entry point is called.
  34.  
  35. Are you sure this is correct? I just tried trapping with
  36. MacsBug on _InitAllPacks: the file dcmd fails to show that the
  37. application's resource file is open, CurMap is
  38. FinderPreferences and CurApRefNum is the Finder. (SE/30, 7.0
  39. tuned). If the app's resource file isn't available, it's tricky
  40. to find it's details. CurApName is correctly set up, though.
  41.  
  42. Jeremy
  43.