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.
I would therefore assume that it is a CRT restriction that is holding me
back to 14 files.
However, under a different environment, the maximum number of files that
can be opened is 9!
I would therefor assume that is an OS/2 file handle restriction that is
holding me back to 9 files (since I know the CRT can do 14).
Can anyone explain this anomaly?
And can anyone suggest a fix?
And actually, the objective of all this is not to create a program that
opens >14 files, the objective is to get MSC 6.00 to compile a program
with >5 include file depth in a TCP/IP environment, without complaining
that it can't find the 6th include file!
Summary:
MAXTEST - program that opens files via fopen()
MAX2 - program that opens files via DosOpen()
FH - program to increase maximum file handles
CL - MSC 6.0
testing on a machine that uses TCP/IP
-------------------------------------
FH MAXTEST = 9
MAXTEST = 9
FH MAX2 = 40
MAX2 = 9
FH CL = 5 levels of includes
non-TCP environment
-------------------
FH MAXTEST = 13
MAXTEST = 13
FH CL = 9 levels of includes
Thanks + bye. Paul.
@EOT:
---
* Origin: X (3:711/934.9)
|