home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4871 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.6 KB

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: fattire@vnet.ibm.com (BJ Hargrave)
  3. Message-ID: <19920910.135230.219@almaden.ibm.com>
  4. Date: Thu, 10 Sep 92 16:47:05 EDT
  5. Newsgroups: comp.os.os2.programmer
  6. Subject: Re: 1.3 and file handle limit?
  7. News-Software: UReply 3.0
  8. References: <cDaVqB3w165w@sps.pgh.pa.us>
  9. Lines: 26
  10.  
  11. In <cDaVqB3w165w@sps.pgh.pa.us> Kevin J. Slater writes:
  12. >Is there a limit to the number of available file handles under OS/2 1.3?
  13. >I have a developer I'm working with who is getting an error message that
  14. >points to no more available file handles from an app he is developing
  15. >under v1.3. Any comments?
  16. >
  17. >...Kevin
  18. >
  19. >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  20. >Kevin J. Slater (kslater@sps.pgh.pa.us)       | Believe in the Lord Jesus
  21. >Slater Programming Services  | CI$ 73077,2427 | and you will be saved - you &
  22. >Glenshaw, PA 15116-0027      | bix kslater    | your household. - Acts 16:31
  23. >- - - - - - - - - - - - WESPAC BBS (412) 487-3637 - - - - - - - - - - - - - -
  24. >
  25.  
  26. I believe there is a system limit of ~64k handles and a per process
  27. limit of ~32k. However, the default per process limit is 20 handles.
  28. This can be increased (but not decreased) with DosSetMaxFH for the life
  29. of the process. All newly created children of the process also inherit
  30. this increased number of file handles.
  31.  
  32. Additional some C compilers have a limit of 20 fopen's which can only be
  33. increase by recompiling the C runtime initialization code.
  34. -----------------------------------------------------------------------
  35. BJ Hargrave                     Internet: fattire@vnet.ibm.com
  36. Boca Raton, FL                  IBMIPNet: bjhar@bjhar.bocaraton.ibm.com
  37.