home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14568 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  2.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!data.nas.nasa.gov!taligent!apple!NewsWatcher!user
  2. From: REEKES@applelink.apple.com (Jim Reekes)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Checksumming MemErr global variable (Tech Note 7) problem
  5. Message-ID: <REEKES-260892132538@90.10.20.67>
  6. Date: 26 Aug 92 20:26:04 GMT
  7. References: <1992Aug18.181714.12276@midway.uchicago.edu>
  8. Sender: usenet@Apple.COM
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple Computer, Inc.
  11. Lines: 37
  12.  
  13. In article <1992Aug18.181714.12276@midway.uchicago.edu>,
  14. chh9@quads.uchicago.edu (Conrad Halton Halling) wrote:
  15. > Tech Note 7 says:
  16. > "If you are having strange, memory-related problems, one thing that
  17. > you can do to help find them is to checksum on MemErr (the low memory
  18. > global word at $220).  In MacsBug, type "SS 220 221"....  When MemErr
  19. > changes, the debugger will appear, and you can check your code to make
  20. > sure that you are checking MemErr.  If not, you might have found a problem
  21. > that could cause your program to crash!"
  22. > I tried this, but apparently StripAddress() is using MemErr because it
  23. > is stuffing strange numbers into this global variable, so this technique
  24. > doesn't seem to work any more.  Does anyone know why StripAddress()
  25. > is using MemErr??
  26. > Furthermore, although I can get the "SS" command to work on an SE, a IIcx,
  27. > and a IIci under System 7, it locks up a IIsi.  The cursor changes to
  28. > the watch, the hands move a few times, the cursor disappears, and then
  29. > nothing.  Has anyone had problems with this?
  30.  
  31.  
  32. > I tried this, but apparently StripAddress() is using MemErr because it
  33.  
  34. I don't believe it.  Go into the debugger and list the code for
  35. StripAddress.
  36. (e.g. IL StripAddress in MacsBug).  Do you see it referencing MemErr?
  37. If nothing else, put the machine into 32 bit mode if possible and then
  38. do your testing.  In 32 mode, StripAddress is just an RTS instruction.
  39.  
  40. -----------------------------------------------------------------------
  41. Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
  42.                              |          Sound Manager Expert
  43. Apple Computer, Inc.         | RAll opinions expressed are mine, and do
  44. 20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
  45. Cupertino, CA 95014          |       employer, Apple Computer Inc.S
  46.