Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!gla-aux.uucp!glenn From: glenn@gla-aux.uucp (Glenn Austin) Newsgroups: comp.sys.mac.comm Subject: Re: CommToolBox Message-ID: <0E010021.amtjak@gla-aux.uucp> Date: 27 May 91 18:00:32 GMT Reply-To: glenn%gla-aux.uucp@skinner.cs.uoregon.edu Organization: The Pit Lane Lines: 18 X-Mailer: uAccess - Mac Release: 1.0.4a In article <1983@prcrs.prc.com>, terryn@prcrs.prc.com (Terry Neely) writes: > have covered everything. There seem to be bugs in the Surfer example source > (ie Hlocks/Hunlocks), and the sample tool source uses hgetstate/hlock then > hsetstate but not hunlock. Is this a recommended way to handle memory? Yes. The HGetState gets the current state of the handle. You can then do pretty much what you wish to do with the handle, then restore the handle flags with HSetState. This is introduced with the 128K ROMs, and is (IMHO) a MUCH better way of dealing with handles. =============================================================================== | Glenn L. Austin | "Turn too soon, run out of room. | | Macintosh Wizard and | Turn too late, much better fate." | | Auto Racing Driver | -- Jim Russell Racing School Instructors | |-----------------------------------------------------------------------------| | Usenet: glenn@gla-aux.uucp | CI$: 76354,1434 | | GENie: G.AUSTIN3 | AOnline: GAustin | ===============================================================================