Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!van-bc! From: lphillips@lpami.wimsey.bc.ca (Larry Phillips) Newsgroups: comp.sys.amiga.tech Subject: Re: Opening dos.library in C Message-ID: <1396@lpami.wimsey.bc.ca> Date: 11 Apr 90 16:09:11 GMT Lines: 20 Return-Path: To: van-bc!rnews In <205@mtiame.oz>, jep@mtiame.oz (Jesper Peterson) writes: >The dos.library is opened for you by the C startup code, so just leap >straight into your dos calls. Apart from it being a bad idea, I don't know >if opening a library twice will cause the machine to crash. You can open a library (in general), as many times as you want. It is done all the time, in that many programs can be opening the same libraries. Opening it twice within one program is only wasteful of time. Of course if you do have a need to open a library twice, for some reason, you should definitely close it twice, too. -larry -- Entomology bugs me. +-----------------------------------------------------------------------+ | // Larry Phillips | | \X/ lphillips@lpami.wimsey.bc.ca -or- uunet!van-bc!lpami!lphillips | | COMPUSERVE: 76703,4322 -or- 76703.4322@compuserve.com | +-----------------------------------------------------------------------+