TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Paul Edwards
from: Phil Crown
date: 1996-11-12 20:58:40
subject: file handles

-=> Quoting Paul Edwards to Jonathan de Boyne Pollard <=-

 PE>
 > JdeBP> The 44 file limit sounds like the default per-process
 > JdeBP> file table size of 50,
 >
 > Default is 20.
 PE>
 
 JdBP> Wrong.  I wrote a program to test it.  It is definitely 50 by default.
 JdBP> The CP Reference is wrong.

 PE> I can program too, and my test shows 20 (actually, it shows even less,
 PE> but that's likely because of device drivers). 
 PE> You likely have device drivers that are increasing the number of file
 PE> handles available to all processes.  Try booting off your OS/2 3.0
 PE> floppies and pressing escape at the first prompt after reading the
 PE> second disk, and then run your program again.  I bet it shows <= 20

You're both right.  From the Warp 4 CP Reference:

 "The default maximum number of file handles for a process is 50. An
 application can change this maximum by using DosSetMaxFH. When this
 call is made, all currently open file handles are preserved.

 In the past, the maximum number of file handles was 20. If you
 previously had code that increased the maximum file handles from 20 to
 less than 50, you can now remove this code."


So I guess it depends on which version of OS/2 you're running.


Phil Crown
pcrown{at}airmail.net
http://web2.airmail.net/pcrown/

--- Blue Wave/OS2 v2.30
* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 972-250-4479 * (1:124/1208)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 124/1208 1 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.