home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / misc / 36831 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.9 KB  |  43 lines

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