TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Jonathan de Boyne Pollard
from: Paul Edwards
date: 1996-10-13 02:39:54
subject: file handles

PE>
 > With a 16-bit MSC 6.0 compiled program, I only appear to be
 > able to open 14 files via fopen, even when I use "fh" (a
 > program to increase the maximum number of file handles).
 > When I run a program that calls DosOpen instead of open,
 > the restriction goes from 14 to 44.
PE>

JdBP> The 14 file limit is a C Runtime Library limit (Borland C++ has a
JdBP> similar limit).  

You will have seen the few million messages I posted on this topic by the
time you get this.  :-)

JdBP> The 44 file limit sounds like the default per-process
JdBP> file table size of 50, 

Default is 20.

JdBP> less 6 already open file handles (stdin, stdout,
JdBP> stderr and suchlike).  Which in turn implies that your
"fh" program
JdBP> isn't doing its job -- check the code (remember that changing the PPFT

fh is doing it's job of increasing the number to 50 (by emperical observation).

It won't be until Monday that I get the results of the TCP/IP machine.  BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.