Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-lcc!lll-winken!uunet!mcvax!kth!draken!tut!tolsun!nix From: nix@tolsun.oulu.fi (Tero Manninen) Newsgroups: comp.sys.amiga Subject: Bug in Manx 3.6a c.lib Keywords: bug, compiler Message-ID: <494@tolsun.oulu.fi> Date: 1 May 89 23:31:27 GMT Reply-To: nix@tolsun.UUCP (Tero Manninen) Organization: University of Oulu, Finland Lines: 18 I haven't been able to read comp.sys.amiga lately so much as I would liked and so I may have missed this: Have anybody found such a bug in Manx 3.6a that it leaves dos.library open when program compiled with cc have exited ? This bug was found when I looked library_info in Xoper and saw an open_count bigger than 200 for dos.library and it increased every time I ran a Manx- compiled program.. An easy fix to this is to patch _exit.c and replace it to c.lib, c32.lib and so on: First declare extern void *DOSBase; then where all other libraries are closed: if (DOSBase) _CloseLibrary(DOSBase); Hope this is correct, at least it works for me :-) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tero Manninen, nix@tolsun.oulu.fi