[net.micro.atari16] Bug in Lattice C 3.03.02

rwb@druxu.UUCP (BlackR) (07/08/86)

I ran across a problem in the Lattice C library, version 3.03.02 (I
believe that is correct) where file handles are not released to GEMDOS
when the file is closed.  The manifestation is I created files with
	fopen(name,"wb")  and closed them with fclose()
but the first write to the 21st file resulted in 2 bombs and a crash.  I
have verified this with a small program that did nothing more than fopen(),
write a line, fclose() 26 times and it died on 21.  This problem does NOT
exist in the version 3.03.04 library (it has problems with fprintf() to
stderr, instead).

What this means is that those of you playing the version of PC HACK that
I compiled with the 3.03.02 libraries might see bombs around the time
you reach the 20th or 21st level.  I haven't gotten that far to verify
the problem exists.  You might also see them if you save a game after
the 10th level.

Rodney Black
AT&T Information Systems
11900 North Pecos St
Denver, CO 80234
ihnp4!druxu!rwb