Path: utzoo!utgpu!watmath!clyde!att!rutgers!mit-eddie!killer!pollux!ti-csl!m2!holland From: holland@m2.csc.ti.com (Fred Hollander) Newsgroups: comp.sys.mac.programmer Subject: Re: Passing info when transfering Message-ID: <65261@ti-csl.CSNET> Date: 8 Dec 88 23:47:33 GMT References: <5446@polya.Stanford.EDU> <1378@helios.ee.lbl.gov> <234@taniwha.UUCP> Sender: news@ti-csl.CSNET Reply-To: holland@m2.UUCP (Fred Hollander) Organization: TI Computer Science Center, Dallas Lines: 20 In article <234@taniwha.UUCP> michael@taniwha.UUCP (Michael Hamel) writes: >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... > I've seen it move. Are you sure it wasn't just locked temporarily? Fred Hollander Computer Science Center Texas Instruments, Inc. holland%ti-csl@csnet-rela The above statements are my own and not representative of Texas Instruments.