home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.misc
- Path: sparky!uunet!van-bc!cs.ubc.ca!destroyer!gumby!wupost!sdd.hp.com!hpscit.sc.hp.com!scd.hp.com!hpscdm!hpscdc!kitchin
- From: kitchin@avo.hp.com (Bruce Kitchin)
- Subject: Re: How to open more then 30 files in a DOS-Box ?
- Message-ID: <BxvF0M.6nG@scd.hp.com>
- Sender: news@scd.hp.com (News Account)
- Organization: Hewlett-Packard, Santa Clara Division
- X-Newsreader: TIN [version 1.1.4 PL6]
- References: <1992Nov17.123700.1280@arbi.Informatik.Uni-Oldenburg.DE>
- Date: Tue, 17 Nov 1992 17:24:21 GMT
- Lines: 30
-
- The problem may be the DOS program. Since you don't mention it or whether
- you've had this problem when running under a booted copy of DOS, I can
- only guess.
-
- There are two file limits which apply to a DOS program. Fundamental is
- the one fixed by the FILES= statement in DOS's config.sys (or the DOS
- settings in OS/2). This is a maximum number of files that can be opened
- at once for all programs.
-
- However, there is another limit. Each program is by default limited to
- 20 files open. To overcome this, the PROGRAM must make a DOS Int 21
- call with the appropriate parameters to set the desired limit. I recall
- in MSC there are comments in the source of the startup code to indicate
- how one may make a C program able to open more files. That change
- involves both calling DOS to up the DOS limit for the program AND
- changing the number of file handles and control blocks allocated in the
- C run time library.
-
- If you have not done so, you might wish to check the program against
- 'real' DOS to see if the program is setup to handle the large number of
- files you need. If that is the problem, you'll have to contact your
- software supplier. If you can demonstrate that it works under 'real'
- DOS and not under OS/2, then you probably have a bug to report. What
- you were doing is the right thing to do to enable OS/2's DOS emulation
- to permit more than 30 files (actually 70).
-
- Good luck.
-
- Bruce
-
-