[comp.sys.amiga] Interesting note

dillon@cory.Berkeley.EDU.UUCP (09/02/87)

	This may have come out a long time ago, but I forgot.  It is a bug
in both Aztec and Lattice C.... they never close the DOS.LIBRARY ...  You can
get a count of the number of programs you ran by simply looking at the
reference count for the library.  As far as I can tell, it doesn't hurt 
anything.

				-Matt
	

bryce@cogsci.berkeley.EDU.UUCP (09/02/87)

> This may have come out a long time ago, but I forgot.  It is a bug
> in both Aztec and Lattice C.... they never close the DOS.LIBRARY ...

In Lattice the bug is in the AStartup.obj file.  When the
program is started from the CLI it fails to close the dos.library.
From Workbench it does it ok.  This causes no particular harm.

A long time back I wrote a set of new "Startup.obj" modules for Lattice
because of an unrelated problem.  I think I even posted them to comp.
{binaries,sources}.amiga.
They are: "CLIStartup.obj" (Will only start from CLI.  If tried from WB
it brings up a Requester that says "...must be started from the CLI...".)
"WBStartup.obj" (For CLI or WB programs that need no command line parameters
(very small)).  And "BothStartup.obj", a complete clone of Astartup.obj
that is half the size and bug-free.


|\ /|  . Ack! (NAK, EOT, SOH)
{O o} . 
( " )	bryce@hoser.berkeley.EDU -or- ucbvax!hoser!bryce
  U	If "hoser" does not work, try my old address at "cogsci"