Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!rochester!cornell!biar!trebor From: trebor@biar.UUCP (Robert J Woodhead) Newsgroups: comp.sys.mac.programmer Subject: Re: Purge or Revert Resource? Message-ID: <693@biar.UUCP> Date: 27 Jun 89 03:56:33 GMT References: <82203@ti-csl.csc.ti.com> <689@biar.UUCP> <376@inebriae.UUCP> Reply-To: trebor@biar.UUCP (Robert J Woodhead) Organization: Biar Games, Inc. Lines: 23 In article <376@inebriae.UUCP> al@inebriae.UUCP (Al Evans) writes: >Seems to me it would be equivalent to saying: > > DisposHandle(H); > H:= NewHandle(someSize); > >and expecting H to be the same before and after. Though this may effectively >be the case, I don't think anything in IM *guarantees* it. You are right. I misunderstood the original question slightly. Ok, the real need here is to purge the relocatable block and set the master pointer to nil. This should be possible as follows: HUnlock(H); { can't be locked } EmptyHandle(H); { IM II-40 } LoadResource(H); { gets it back from disk } -- (^;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-;^) Robert J Woodhead, Biar Games, Inc. !uunet!biar!trebor | trebor@biar.UUCP ``I can read your mind - right now, you're thinking I'm full of it...''