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