Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!microsoft!dans From: dans@microsoft.UUCP (Dan SPALDING) Newsgroups: comp.os.os2.programmer Subject: Re: Increasing the number of file handles Message-ID: <56396@microsoft.UUCP> Date: 8 Aug 90 02:03:58 GMT References: <1266@dialogic.UUCP> Reply-To: dans@microsoft.UUCP (Dan SPALDING) Organization: Microsoft Corp., Redmond WA Lines: 15 In article <1266@dialogic.UUCP> gerry@dialogic.dialogic.com (Gerry Lachac) writes: > >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. if you are using the c-runtime for opening files, you also have to increase the number of handles the c-runtime can handle as well as the FILEBUF table for the buffered io calls (fwrite, fopen, etc.). this is documented in the c startup code in crt*.asm fairly close to _astart. also need to check _file.c. Dan Spalding