Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!amdahl!rtech!mtxinu!taniwha!michael
From: michael@taniwha.UUCP (Michael Hamel)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Passing info when transfering
Message-ID: <234@taniwha.UUCP>
Date: 7 Dec 88 16:45:02 GMT
References: <5446@polya.Stanford.EDU> <1378@helios.ee.lbl.gov>
Reply-To: michael@taniwha.UUCP (Michael Hamel)
Organization: Taniwha Systems Design, Oakland
Lines: 15

In article <1378@helios.ee.lbl.gov> beard@ux1.lbl.gov (Patrick C Beard) writes:
>Come on!  This is very simply done by setting AppParmHandle (see IM II-57) 

There is one slight problem: AppParmHandle is pointing to the parameters that
were passed to your application, in a *locked* block on the system heap. You
can't leave that there and just repoint AppParmHandle. The strategy I adopted
was to change the contents of the locked block, and only move it if I absolutely
had to. This seemed to work, but I wish I knew why the Finder locked it (the
implication being that someone was keeping a pointer to it...

-- 
"Pay no attention to this swine," I said to the hitchhiker...

Michael Hamel           |  currently    ..!{unisoft|mtxinu}!taniwha!michael
University of Otago     |  soon to be   ..!ucbvax!michael@otago.ac.nz