[comp.os.os2.programmer] Summary: Increasing number of file handles

gerry@dialogic.UUCP (Gerry Lachac) (08/09/90)

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