home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!ukma!darwin.sura.net!spool.mu.edu!nigel.msen.com!heifetz!bgalli!bga
- From: bga@bgalli.mug.org (Billy G. Allie)
- Subject: Re: "Too many files open" error in DOS
- Message-ID: <NWVQBWKC@bgalli.mug.org>
- Organization: Bill's Home Machine
- References: <1cp9gjINNi5j@mizar.usc.edu>
- Date: Sun, 8 Nov 1992 16:38:23 GMT
- Lines: 31
-
- sharp@mizar.usc.edu (Malcolm Sharp) writes:
-
- >
- >We've developed an MS-DOS-based FORTRAN program that has given the
- >error message "Too many files open." This occurs when we the program
- >is attempting to open the 16th file. We have editted the 'CONFIG.SYS'
- >file "FILES= " statement to be 30, 40, ... 60 files to no avail (and of
- >course rebooted after making the change).
- >
- >Any ideas suggestions will be appreciated.
- >
-
- Changing the "FILES=" parameter in CONFIG.SYS changes the number of system
- wide file handles that are available. But, the problem is that MS-DOS
- limits the number of open files per process to twenty (20), five (5) of
- which are pre-opened by COMMAND.COM for the process before it starts.
- Given this fact, you will be able to open fifteen (15) additional files
- before running out of 'per process' file descriptors. There are ways
- around this limit that involves running a program that increases the per
- process limit and then executes the program that needs the increased
- limits. If you are interested in the details, send me E-mail, and I will
- dig up the detailed information to send to you. Be sure to include the
- version of MS-DOS you are using.
-
- BTW: The five (5) pre-opened files are 'stdin', 'stdout', 'stderr',
- 'stdaux', and 'stdprn'
- --
- ____ | Billy G. Allie | Domain....: bga@bgalli.eds.com
- | /| | 7436 Hartwell | UUCP......: uunet!edsews!bgalli!bga
- |-/-|----- | Dearborn, MI 48126 | Compuserve: 76337,2061
- |/ |LLIE | (313) 582-1540 | Genie.....: BGALLIE
-