🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12668

Re: OpenDevice from tasks

#12668
From: Bryan Ford
Date: Fri, 12 May 1989 12:14
21 lines
1406 bytes
The  CloseDevice  function CAN INDEED call AmigaDOS.  This would happen if,
when   you   CloseDevice(),  the  delayed-expunge  flag  is  set  (somebody
previously  tried  to  expunge  it), and you're the last user of the device
(UseCount  decremented  to  zero), and the device is loaded.  In this case,
the  OS will call UnLoadSeg() to free the SegList used by the device, which
is an AmigaDOS function.

Although  this  situation will be quite rare, it IS possible, and should be
avoided.    Also,  this  applies  equally  to  libraries,  since  they  are
manipulated in exactly the same way.

So:  DON'T OPEN, CLOSE, OR EXPUNGE LIBRARIES OR DEVICES FROM A TASK.

As usual, I may be wrong, since I didn't program the operating system.

--

     ______________________________________
   _/ Bryan Ford - bryan@chroma.inland.com \_
 _/   ..!utah-cs!caeco!i_core!chroma!bryan   \_
/  ..!uunet!iconsys!caeco!i_core!chroma!bryan  \
Technical Details
Message-ID: <0539.AA0539@chroma>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!iconsys!caeco!i_core!chroma!bryan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!iconsys!caeco!i_core!chroma!bryan
From: bryan@chroma.UUCP (Bryan Ford)
Newsgroups: comp.sys.amiga.tech
Subject: Re: OpenDevice from tasks
Summary: Don't open, close, or expunge libraries or devices from a task.
Keywords: OpenDevice, AmigaDOS, Tasks, Processes
Message-ID: <0539.AA0539@chroma>
Date: 12 May 89 12:14:28 GMT
Followup-To: comp.sys.amiga.tech
Lines: 21