Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!bbn!gatech!udel!mmdf From: thywiss@csvax.cs.ukans.edu (John A. Thywissen) Newsgroups: comp.sys.amiga Subject: Re: OpenDevice from tasks Message-ID: <15593@louie.udel.EDU> Date: 16 May 89 20:12:22 GMT Sender: mmdf@udel.EDU Lines: 20 In article <0539,AA0539@chroma>, Bryan Ford writes that CloseDevice() should be called from processes only, because a DELayed EXPunge may cause DOS's UnLoadSeg() to be called. This is not quite a valid conclusion because: 1. Libraries/Devices can be expunged by the memory allocater when RAM gets short, and CERTAINLY AllocMem() is safe from a task. 2. Actually, UnLoadSeg() isn't called. Exec (or actually ramlib) frees the SegList itself. If you look carefully, I don't think you will find any EXPLICIT references to UnLoadSeg in the docs. [I hope -- I wasn't able to.] --John ------- John A. Thywissen 1122 West Campus Rd. Rm. 213 /| |\/| | / \ |\ Lawrence, KS 66045-8081 / | | | | | | \ (913) 864 2646 _/_-_-_|_ _|_ _ _|_ _|_ _ _\__|_ _|_-_-_\