Path: utzoo!utgpu!watserv1!watmath!att!rutgers!usc!wuarchive!udel!haven!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: comp.sys.mac.programmer Subject: Re: NewHandle(0L) ? Message-ID: <1990Oct19.195024.15200@eng.umd.edu> Date: 19 Oct 90 19:50:24 GMT References: <32600007@inmet> <1990Oct19.151254.8197@ux1.cso.uiuc.edu> Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 18 In article <1990Oct19.151254.8197@ux1.cso.uiuc.edu> scott@scotty (Scott Howard) writes: > >Why call a handle up before you need to? If you >pre-allocate it with 0L, you lose the advantage of being >able to tuck it into an unobtrusive corner of your application's >heap. At any rate, It ought to work as long as you don't try >disposing it. I use it when trying to load data from a disk file when there is no length information preceding the data. Disposing it works fine-- it's a perfectly valid handle, with a master pointer and everything. You can still tuck it into an unobtrusive corner of the heap with MoveHHi at a later time (after you have SetHandleSize'd it) -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu .sig under construction, like the rest of this campus.