Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!biar!trebor From: trebor@biar.UUCP (Robert J Woodhead) Newsgroups: comp.sys.mac.programmer Subject: Re: Memory, what *REALLY* will relocate/purge heap? Message-ID: <1004@biar.UUCP> Date: 30 Dec 89 17:58:03 GMT References: <5847@sdcc6.ucsd.edu> Organization: Biar Games, Inc. Lines: 20 Keywords: Memory, heap zone ma199at@sdcc6.ucsd.edu (L J Cris) writes: >What I would have liked for Christmas: >A real list of routines that will or will not scramble/purge the heap. Assume EVERYTHING will change the heap. Assume that any time you go withing spitting distance of the ROM, the heap will scramble. Assume that EVERY procedure call will muddle it up. If you use dereferenced handles of any type, MoveHHi and HLock them without fail, for Woodhead's Law of Mis-Handling clearly states that: ``Even if a rom call doesn't mess with the heap at present, it's sure to do it in the future. Either Apple or a bright INIT writer will patch it in such a way as to screw you.'' -- Robert J Woodhead, Biar Games, Inc. !uunet!biar!trebor | trebor@biar.UUCP Announcing TEMPORAL EXPRESS. For only $999,999.95 (per page), your message will be carefully stored, then sent back in time as soon as technologically possible. TEMEX - when it absolutely, postively has to be there yesterday!