Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!sun!rishathra!page From: page%rishathra@Sun.COM (Bob Page) Newsgroups: comp.sys.amiga Subject: Re: Bug in Manx 3.6a c.lib Summary: not really Keywords: bug, compiler Message-ID: <102473@sun.Eng.Sun.COM> Date: 3 May 89 00:05:49 GMT References: <494@tolsun.oulu.fi> Sender: news@sun.Eng.Sun.COM Reply-To: page@sun.UUCP (Bob Page) Organization: Sun Microsystems, Mountain View Lines: 17 nix@tolsun.UUCP (Tero Manninen) wrote: >Have anybody found such a bug in Manx 3.6a that it leaves dos.library >open when program compiled with cc have exited ? Depending on your viewpoint, it's not a bug. The only reason to close dos.library is to decrement the open count .. closing it does not free any resources. The only reason to decrement the open count is to allow the library to be purged from RAM when the count drops to zero and you need the memory. Well, dos.library is in ROM, so will never get purged. Thus closing DOSBase doesn't accomplish anything except maybe peace of mind. But it does add some extra bytes to your executable. Maybe you should team up with Leo and write CloseResource(). ..bob