vkr@osupyr.mast.ohio-state.edu (Vidhyanath K. Rao) (05/19/89)
A while back, there was a message that said ``Don't use CloseDevice() or CloseLibrary() from tasks''. The justification was that these may cause a call to UnloadSeg(). I was away for a while and couldn't find any replies to it. I can understand if the prohibition applied only to OpenDevice or OpenLibrary. Thay may call LoadSeg(). But it seems to me that UnLoadSeg() should simply FreeMem all the segments. This should not require the dedicated MsgPort that DOS Processes have and should be safe to call from tasks. Can anybody in the know confirm or deny this? If the original article were correct, it seems that tasks are not worth launching. The program that launches the task can open the libraries for the task, but should not have to hang around just to close these libraries. -- It is the man, not the method, that Nath solves the problem. vkr@osupyr.mast.ohio-state.edu -Poincare. (614)-366-9341