Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Files=?? Buffers=??
Message
From
31/03/2000 10:55:48
 
 
To
30/03/2000 22:09:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00353060
Message ID:
00353342
Views:
13
>Hi, everyone
>
>i had a FP2.6(DOS) system in my PC. i access it from Window98
>(call up a DOS mode window). At the first i call it a message
>appear on screen 'too many file open', so i add a CONFIG.SYS at
>C:\ ( FILES=100 & BUFFERS=30 ). the system can run, now.
>Q1. is't the best way to add a CONFIG.SYS for start up Window98
> (maybe not good for another Window application)

If you need to control the largset number of open files in Win9x, the best approach is to create an entry in the CONFIG.SYS with a FILES= entry in it. Under NT, you can associate a custom CONFIG.SYS with an application, but that is not an option with Win9x.

>Q2. i try to right-click on MAIN.BAT and find some information
> about MS-DOS mode setting....is't better then form a CONFIG.SYS

The details of many memory and screen-related items are controlled through a .PIF file that may be associated with a given .BAT or DOS executable; if no .PIF exists for a specific entry, the inherited values from _DEFAULT.PIF are used when the file starts under Win9x. Under Win9x, the FILES behavior is established well before the PIF might be able to step in to make any adjustments - this is different under NT.

>Q3. What is the bast value for FILES & BUFFERS

There's no fixed answer, since it depends largely on individual machine configuration. Both have consequences for free conventional memory in a DOS VDM, and needlessly making any adjustment to buffers is perhaps the most common really clear sign that a total incompetent has worked on the PC, since after boot happens, the BUFFERS setting has no measurable effect on DOS VDM performance, but can do things to needlessly occupy space in the HMA or conventional memory space that could be put to better use. FILES obviously affects the number of files that could be opened by a VDM, and each entry eats some space from memory otherwise available to applications.

The solution long-term is to get away from the DOS and Win16 environment, so that these issues are dompletely non-existent.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform