PRB: "Too Many Files" Open in FoxPro for MacintoshLast reviewed: June 1, 1996Article ID: Q134367 |
The information in this article applies to:
SYMPTOMSWhen several users are running a FoxPro for Macintosh application and using tables stored on a server, it is possible to receive the message:
Too many files open CAUSEThis indicates that there are not enough file handles on the server for the number of users and files that are open. This usually happens when the server is another Macintosh connected to through the AppleTalk services provided with the System Software. The absolute limit of file handles on a Macintosh is 342. Note that each user that opens a file on a server uses another file handle.
WORKAROUNDThe following are suggestions that may help reduce the number of file handles being used on the server:
MORE INFORMATIONThe following information was provided by Apple Developer Support on the maximum number of File Control Blocks (FCBs) available in the Macintosh Operating System File Manager, and therefore, the number of files that can be open at one time. This information only applies to System 7.x. "While System 7 increases the number of FCBs as required, there is an absolute limit imposed by the File Manager. This limit is 342 FCBs and is documented in Inside Macintosh, File p. 2-81:
'The initial size of the FCB buffer is determined by the system startupinformation stored on a volume. Beginning in system software version 7.0, the File Manager attempts to resize the FCB buffer whenever the existing buffer is filled. You can find the beginning of any particular FCB by adding the size of all preceding FCBs to the size of the FCB buffer length word (that is, 2). This offset from the head of the FCB buffer is used as the file reference number of the corresponding open file. Because the current size of an FCB is 94 bytes, the first few valid file reference numbers are 2, 96, 190, 284, 378, 472, and so on. The maximum size of an expandable FCB buffer is 32,535 bytes, so there is an absolute limit of 342 FCBs in the FCB buffer.' "
|
Additional reference words: VFoxMac 3.00b 2.50b 2.50c 2.60a FoxMac
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |