Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!nucsrl!accuvax.nwu.edu!bob From: bob@accuvax.nwu.edu (Bob Hablutzel) Newsgroups: comp.sys.mac.programmer Subject: Re: Ptrs, Handles, & Stuff Message-ID: <10050077@accuvax.nwu.edu> Date: 21 Feb 89 00:34:17 GMT References: <7208@spool.cs.wisc.edu> Organization: Northwestern U, Evanston IL, USA Lines: 15 > Here's a simple question for you. What are the general rules of when to > dispose a ptr/handle and when not to (assuming I'm finished with it). > Sometimes I would dispose of a ptr/handle that I thought I was through with > and then crash. > Thanks for the info. I'd be willing to bet that if you think you are done with a handle, you are done with a handle (or pointer). But remember - having disposed of a handle/ pointer subjects the heap to a shake-up. Make sure that any handles you are still using are properly locked if derefed, and deref them again if not. The only exception I know if are system resources, which you don't dispose. Bob Hablutzel Wildwood Software BOB@NUACC.ACNS.NWU.EDU