Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!hplabs!hp-ses!hpcea!hpausla!jcl From: jcl@hpausla.HP.COM (Jeff Laing) Newsgroups: comp.sys.mac.programmer Subject: Re: Closing Desk Accessories Message-ID: <2580009@hpausla.HP.COM> Date: 19 Jan 89 06:53:27 GMT References: <2580008@hpausla.HP.COM> Organization: HP Australian Software Operation Lines: 21 Sean Parent (parent@Apple.COM) writes in comp.sys.mac.programmer: > In article <2580008@hpausla.HP.COM>, jcl@hpausla.HP.COM (Jeff Laing) writes: > > What does a desk accessory have to do to close itself? > > > Are you having trouble with calling CloseDeskAcc? Tried it. Didnt seem to work. > You would have to be carefull > to make sure that after calling CloseDeskAcc your code did nothing that could > disturb memory sinse you are now operating out in either unlocked or purgable > code. If CloseDeskAcc is moving the code befor you return [ ... deleted ...] If I can't find Apple saying 'yes, call CloseDeskAcc' then I can't rely on it. I figured the problem might have been because I was calling 'CloseDeskAcc' last thing before returning, but I was still going back through LightSpeed C 3.01's DA glue, which might cause problems. Also, Suitcase probably wouldn't help either. Anyone think of something not involving CloseDeskAcc?