home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / fortran / 4242 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.8 KB  |  42 lines

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