🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1442

Summary: Increasing number of file handles

#1442
From: Gerry Lachac
Date: Thu, 09 Aug 1990 13:58
28 lines
1543 bytes
Thanks very much to all the people who promptly replied to my plea for
help. My original question was:

>   Has anyone had any success increasing the number of filehandles for an
>   OS/2 protectmode process?  I have tried using the DosSetMaxFH API call
>   to set the number of file handles to various numbers between 50 and
>   255, but I never seem to have more than 20. DosSetMaxFH does not
>   return any errors.

The problem, as everyone point out, was that I was using the C
run-time library. The startup code for the library limits file opens
to 20, unless you modify the code.  This is documented in the startup
files and in the Microsoft manuals (so I was told).

I didn't attempt to check because I went straight ahead with the
second solution, which is directly using DosOpen().


And to think that I thought no one read the os2 groups...




uunet!dialogic!gerry   | "Even a dead plant turns  |	Dialogic Corporation
	OR	       |  over a new leaf 	   |	300 Littleton Rd
gerry@dialogic.UUCP    |  when the wind blows."	   |	Parsippany, NJ 07054 
		       |  			   |	(201)334-1268 X193
Technical Details
Message-ID: <1267@dialogic.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!dialogic!dialogic.UUCP!gerry

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!dialogic!dialogic.UUCP!gerry
From: gerry@dialogic.UUCP (Gerry Lachac)
Newsgroups: comp.os.os2.programmer
Subject: Summary: Increasing number of file handles
Message-ID: <1267@dialogic.UUCP>
Date: 9 Aug 90 13:58:00 GMT
Sender: news@dialogic.UUCP
Reply-To: gerry@dialogic.UUCP (Gerry Lachac)
Organization: Dialogic Corp., Parsippany, NJ
Lines: 28