home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / streams / handles / bcc30.doc next >
Encoding:
Text File  |  1992-04-01  |  1.3 KB  |  31 lines

  1. First, the good news. It is very easy to increase the number of file
  2. handles with bcc v3.0. Borland supplies all of the basic mechanisms needed
  3. to increase the number of file handles. You also get the ability to increase
  4. the number of streams.
  5.  
  6. My "close.c" file contains the code to do everything for you. Just compile
  7. and link with your program. You do not need to modify your program in any
  8. way, that is unless you have written code which assumes that you can never
  9. get more than 20 handles!
  10.  
  11. And the not-so-good news.. the mechaniasm which Borland supplies in bcc 3.0
  12. requires that the number of streams is increased by the same number as the
  13. number of handles. Therefore if, for example, 250 handles are allowed for,
  14. then storage for 250 streams must be allocated as well -- and the 250 streams
  15. take a total of about 5000 bytes even before any are actually used!
  16.  
  17. If you wish to decrease this extra size, just reduce MAX_FD in "close.c".
  18.  
  19. Note also that the method which my file "close.c" uses for earlier versions
  20. of Turbo C is not compatible with BCC 3.0. It just won't work if you compile
  21. "close.c" with an earlier version of Turbo C and then link with a BCC 3.0
  22. library (or vice versa) !
  23.  
  24.  
  25.  
  26. -------------
  27. 30th March 1992
  28.  
  29. W. Metzenthen
  30. apm233m@vaxc.cc.monash.edu.au
  31.