X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer Subject: Re: DJGPP Setup? Date: Tue, 24 Mar 2009 06:50:05 -0400 Organization: Aioe.org NNTP Server Lines: 29 Message-ID: References: <0KGZ00GQ8UBIYMM0 AT mta4 DOT srv DOT hcvlny DOT cv DOT net> NNTP-Posting-Host: pldq+kT97bAAp/ObDwnZyQ.user.aioe.org X-Complaints-To: abuse AT aioe DOT org NNTP-Posting-Date: Tue, 24 Mar 2009 10:47:00 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1933 X-Notice: Filtered by postfilter v. 0.7.7 X-Newsreader: Microsoft Outlook Express 6.00.2800.1933 Cancel-Lock: sha1:FU+OqbyObKwb7KfchLKRfXIhCw8= X-Priority: 3 X-MSMail-Priority: Normal To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Ethan Rosenberg" wrote in message news:0KGZ00GQ8UBIYMM0 AT mta4 DOT srv DOT hcvlny DOT cv DOT net... In comp.os.msdos.djgpp, > I have a program that opens almost 30 files. How is that possible?... What version of DOS and DJGPP are you using? According to the following source, DOS limits a single process to a maximum of 20 file handles even if config.sys' FILES= line is larger. Three of these 20 handles are consumed by stdin, stdout, stderr. See "RESTRICTIONS ON HANDLE USAGE" in Dave Williams DOSREF22 here: http://nersp.nerdc.ufl.edu/~esi4161/files/dosman/chap7 You can find various versions of the entire DOSREF package by searching for dosref22.zip, dosref33.zip, or dosref34.zip. > With fptr27 and fptr25, after approx 20 writes, it gives garbage. Perhaps, DOS is automatically closing your extra files or DJGPP is reusing the file handles... (?) Rod Pemberton PS added comp.os.msdos.programmer