Runtime Error 6009 - Default Environment SizeLast reviewed: October 21, 1994Article ID: Q119365 |
The information in this article applies to:
SYMPTOMSWhen you run an MS-DOS - based application that requires a large amount of environment space, such as a compiler, you may encounter Runtime Error 6009.
CAUSEThis error occurs when there are not enough bytes allocated for the environment. The default environment size for MS-DOS - based applications running under Windows NT is 256 bytes. Windows NT sets up many more variables than an average MS-DOS operating system usually does and can quickly meet the default size. The following list is an example of default variables after you install Windows NT over MS-DOS:
COMSPEC COMPUTERNAME HOMEDRIVE HOMEPATH MOUSE OS OS2LIBPATH PATH PROCESSOR_ARCHITECTURE PROCESSOR_LEVEL PROMPT SYSTEMROOT TEMP USERDOMAIN USERNAME WINDIR WORKAROUNDThe environment size can be adjusted from the command line or in a .BAT or .CMD file in the SYSTEM32 directory by adding the following line:
COMMAND /E:XXXXAdditionally, you can use the /P parameter to make the new command interpreter permanent, and you can use the /C parameter to run a specific program after initiating Command. The environment can also be changed by adding the following line to the CONFIG.NT file in the SYSTEM32 subdirectory
SHELL=%SYSTEMROOT%\SYSTEM32\COMMAND.COM /E:SIZE /Pwhere "SIZE" is the maximum length in bytes you want COMMAND.COM to allocate for each program. The maximum size for the environment is 32768 bytes.
REFERENCESFor more information about the Windows NT command prompt and commands for the MS-DOS and Windows NT subsystems, please see Chapter 9 of the Windows NT "System Guide."
|
Additional reference words: prodnt 3.10 3.50 err msg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |