TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Paul Edwards
from: Peter Fitzsimmons
date: 1995-11-12 08:09:04
subject: watcom and warp

PE> I used to be able to open 92 files under OS/2 2.1 with the below
 PE> program, but under OS/2 3.0 I can only get 13.  Has something
 PE> changed with regards to file handles?  The executable is
 PE> unchanged, and compiled with Watcom.  BFN.  Paul.

Unchanged,  I got 91 files opened with your program on my Warp pc.  The
value changes depending on what parent programs have done -- for example,
if something in your conig.sys (run=),  or a WPS object,  has called
DosSetMaxFH(),  it will impact your programs too.

If you need more than a dozen files,  it is _never_ safe to assume the
default on your PC will be the same on other's.

I made your program allow 200 files by calling the watcom function
_grow_handles(200).

I think the IBM CRT will automatically cope with a DosSetMaxFH() --Watcom's
doesn't -- it needs you to call _grow_handles (which will call DosSetMaxFH
for you) to expand its internal handle table.


--- Maximus/2 3.00
* Origin: Sol 3 * Toronto * V.32 * (905)858-8488 (1:259/414)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809
@PATH: 259/414 400 99 250/99 3615/50 396/1 270/101 712/515 711/808 809 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™.