TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Paul Edwards
date: 1996-10-02 00:47:54
subject: watcom and warp

On 1995-11-12 08:09, Peter Fitzsimmons of 1:259/414 wrote:

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.

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

What does the thing in config.sys (run=) need to do in order to impact
other programs?  Basically, I'd like to interfere myself, upwards for a
nice change!  So I wrote the following program, and stuck it in my
config.sys, but it had no effect on my other applications...

#define INCL_DOS
#include 

int main(void)
{
    DosSleep(50000L);
    DosSetMaxFH(200);
    return (0);
}
@EOT:

---
* Origin: X (3:711/934.9)

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™.