Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!math.fu-berlin.de!mailgzrz!opal!ah From: ah@opal.cs.tu-berlin.de (Andreas Helmcke) Newsgroups: comp.sys.novell Subject: Re: File Handles, How to get more > 40 Keywords: File Handles, Compilers, Environment, Config.sys Message-ID: <3468@opal.cs.tu-berlin.de> Date: 24 May 91 11:03:42 GMT References: <1991May23.223224.23679@newsserver.sfu.ca> Sender: news@opal.cs.tu-berlin.de Lines: 41 Nntp-Posting-Host: kit-gw shephard@newsserver.sfu.ca (Gordon Shephard) writes: >Novell seems to ignore the Config.Sys Command, Files=50, when using >Novell 2.15 and Microsoft C 5.1. Normally Microsoft C 5.1 refuses to >give more than 20 file handles, but the compiler can be modified (by >modifying the source code for MC 5.1, crtodat.asm) to give you a greater >number of file handles. Unfortunately Novell 2.15 seems to ignore this >change, and will give a maximum of 40 file handles. Is there any way to >get around this? You are mixing up several limits for file handles: 1. In config.sys : Files= ... this limits the max. numer of open files for your PC and all processes: (e.g. starting a programm from within an other creates a new 'process') 2. The number of open files (file handles) per process is limited by DOS (not Microsoft C ) to am maximum of 20. (there is an undocumented DOS-function-call you can use to increase this limit) (I guess the modification for MSC will use that (or simular)) 3. Novell Netware restricts the number of file handles per WS to 40 (right :-) this is your actual limit) you can increase this by adding the line FILE HANDLES=.... to the file SHELL.CFG on your workstations boot disk. (if you don't have it by now, just create it ;-)) 4. the Netware file Server has an limit on open files in the total net. You have to reconfigure your server using elsgen to change this. All the above mentiond limits work together i.e. *all* have to be high enough for your application to work. Andreas -- Andreas Helmcke | UUCP: ah@tubopal.UUCP (ah@opal.cs.tu-berlin.de) | ...!{unido,pyramid}!tub!opal!ah | BITNET: ah%tubopal@DB0TUI11.BITNET Steinbach's Guideline for Systems Programming