Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: deleting DA's from memory Message-ID: <32081@apple.Apple.COM> Date: 31 May 89 18:23:53 GMT References: <31991@apple.Apple.COM> <10221@claris.com> Organization: Apple Computer Inc, Cupertino, CA Lines: 39 In article <10221@claris.com> wombat@claris.com (Scott Lindsey) writes: [...] >Only "sensible" alternative to *automatically* install itself, that is. It >could, of course, require that you turn it on manually through the CDA menu... Yup, that's what I meant. >And the Toolbox Reference *does* say "The second entry point is necessary >because CDAs can spawn background tasks that rely on the availability of the >current ProDOS. The shutdown routine allows the CDA to stop the tasks." True. But it doesn't say that's the *only* use for the shutdown routine, or that background tasks should *always* be stopped. >And NDA's *should* get their grubby fingers out of the system on a ShutDown. Well...I don't think that that's specified clearly anywhere. But as soon as 5.0 is out, there's nothing stopping 3rd parties from writing a utility that calls RemoveNDA on an NDA's main handle and then calls UserShutdown on its ID. I just realized there's no wonderfully straightforward way to get a list of all the handles appropriate for use with RemoveNDA/RemoveCDA. I guess you have to call GetLoadSegInfo on memory IDs in the $50xx range, and then use FindHandle to get the handle for the first segment. >Scott Lindsey |"Cold and misty morning. I heard a warning borne in the air >Claris Corp. | About an age of power when no one had an hour to spare" >ames!claris!wombat| DISCLAIMER: These are not the opinions of Claris, Apple, >wombat@claris.com | StyleWare, the author, or anyone else living or dead. --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 AppleLink--Personal Edition: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.