[comp.sys.amiga.tech] OpenDevice from tasks

bryan@chroma.UUCP (Bryan Ford) (05/12/89)

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  \