Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!bloom-beacon!vaxeline!bootsie!olson From: olson@bootsie.UUCP (Eric Olson) Newsgroups: comp.sys.mac.programmer Subject: Recovering a Handle from an address in the block Keywords: Memory Manager, RecoverHandle() Message-ID: <34@bootsie.UUCP> Date: 11 Nov 90 18:53:34 GMT Reply-To: olson@endor.harvard.edu (Eric K. Olson) Distribution: na Organization: Lexington Software Design, Lexington, MA Lines: 17 Is there a socially responsible way to retrieve a Handle, given a pointer to an address inside the block of memory to which the Handle points? RecoverHandle() expects a Pointer to the beginning of the block, which isn't known. I know this can be done by walking the heap (Macsbug does it), but I don't really want to count on that not changing. -Eric -- Eric K. Olson, Editor, Prepare() NOTE: olson@bootsie.uucp will not work! Lexington Software Design Internet: olson@endor.harvard.edu 72A Lowell St., Lexington, MA 02173 Usenet: harvard!endor!olson (617) 863-9624 Bitnet: OLSON@HARVARD