🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #1165

Bug in Lattice C 3.03.02

#1165
From: BlackR
Date: Tue, 08 Jul 1986 15:11
21 lines
1456 bytes
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
Technical Details
Message-ID: <135@druxu.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!drutx!druxu!rwb

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!drutx!druxu!rwb
From: rwb@druxu.UUCP (BlackR)
Newsgroups: net.micro.atari16
Subject: Bug in Lattice C 3.03.02
Message-ID: <135@druxu.UUCP>
Date: Tue, 8-Jul-86 11:11:40 EDT
Article-I.D.: druxu.135
Posted: Tue Jul  8 11:11:40 1986
Date-Received: Thu, 10-Jul-86 01:33:46 EDT
Organization: AT&T Information Systems Labs, Denver, Co
Lines: 21
Keywords: Lattice C, HACK