Article View: comp.os.msdos.misc
Article #49Re: "Too many files open" error
From: Arthur Rubin
Date: Thu, 29 Oct 1992 19:55
Date: Thu, 29 Oct 1992 19:55
33 lines
2214 bytes
2214 bytes
In <1cp8uaINNhlq@mizar.usc.edu> sharp@mizar.usc.edu (Malcolm Sharp) writes: >We have developed an application that when run gives the error message >"Too many files open." This error occurs when the 16th file is to >open by the application. We have set the "FILES=" statement in >CONFIG.SYS to 30, 40, 50 and 60 with no luck. There are (at least) 3 different file limits in most MSDOS applications. First, the FILES= in CONFIG.SYS limits the total number of open files across all processes (including TSRs). Second, unless you specify otherwise by modifying the PSP (DOS 3.0+) or using INT 21 function 67 (DOS 3.3+), SET HANDLE COUNT, processes can only have 20 files open. (See the INTERRUPT LIST under INT 21 function 26 -- CREATE NEW PROGRAM SEGMENT PREFIX for the details of the JFT), you are limited to 20 handles per process. Third, many high level languages (Microsoft C, for instance) have a separate limit of 20 for the number of FILE pointers you can have for high level I/O operations. You can still do low level or dos level I/O if you have handled the first and second limits, or, if you do your own paging of the FILE (and FILE2) areas, you can essentially do high level I/O. (I think this was posted once on comp.os.msdos.programmer None of this helps you, of course, if you don't have SOME low level access to the file system. -- Arthur L. Rubin: a_rubin@dsg4.dse.beckman.com (work) Beckman Instruments/Brea 216-5888@mcimail.com 70707.453@compuserve.com arthur@pnet01.cts.com (personal) My opinions are my own, and do not represent those of my employer. My interaction with our news system is unstable; please mail anything important.
Technical Details
Message-ID:
<a_rubin.720388513@dn66>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sdd.hp.com!cs.utexas.edu!sun-barr!ames!elroy.jpl.nasa.gov!news.claremont.edu!ucivax!news.service.uci.edu!beckman.com!dn66!a_rubinReferences:
<1cp8uaINNhlq@mizar.usc.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sdd.hp.com!cs.utexas.edu!sun-barr!ames!elroy.jpl.nasa.gov!news.claremont.edu!ucivax!news.service.uci.edu!beckman.com!dn66!a_rubin Newsgroups: comp.os.msdos.misc Subject: Re: "Too many files open" error Message-ID: <a_rubin.720388513@dn66> From: a_rubin@dsg4.dse.beckman.com (Arthur Rubin) Date: 29 Oct 92 19:55:13 GMT References: <1cp8uaINNhlq@mizar.usc.edu> Organization: Beckman Instruments, Inc. Nntp-Posting-Host: dn66.dse.beckman.com Lines: 33