Article View: alt.msdos.programmer
Article #513Re: Why won't DOS allow more than 20 open files?
From: Matthias Barmeier
Date: Wed, 13 Jun 1990 07:06
Date: Wed, 13 Jun 1990 07:06
22 lines
1608 bytes
1608 bytes
In article <90160.191651JXS118@psuvm.psu.edu> JXS118@psuvm.psu.edu (Jeff Siegel, Op from Atherton Hall) writes:
]Even though I have the statement FILES = 40 in my config.sys, DOS refuses
]to open more than 20 files at once and returns error code 4 (no handles
]available) if I try to open more. I've tested this on 3 different version
]of DOS (all of which allegedly support the FILES statement) Any clues why this
]is?
Try this :
MSDOS INT 21 with AX=6700h and BX=Number of handles to open.
This Msdos function returns in AX the error code if carry flag is set.
This call allows programs to control number of file handles available fo use.
Memory is allocated from memory freed by int 21 AX=4A00h. If number of handles
is less than current number of open files, change becomes effective when currentnumber of files drops below new limit.
INT 21 with AX=4A00h and BX=New requested block size in paragraphs (16 Byte).
and ES=Segment of Block to be modified.
I hope this will help you !
Ciao
mat@zelator.UUCP
Technical Details
Message-ID:
<623@zelator.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!gopnbg!tmpmbx!zelator!matReferences:
<90160.191651JXS118@psuvm.psu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!gopnbg!tmpmbx!zelator!mat From: mat@zelator.UUCP (Matthias Barmeier) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer Subject: Re: Why won't DOS allow more than 20 open files? Message-ID: <623@zelator.UUCP> Date: 13 Jun 90 07:06:44 GMT References: <90160.191651JXS118@psuvm.psu.edu> Reply-To: mat@zelator.UUCP (Matthias Barmeier) Organization: Andreas Baumann Berlin, West Germany Lines: 22