ENVIRON Statement Produces "Out of Memory" Error Message (21963)
This article was previously published under Q21963
SUMMARY
Most forms of the ENVIRON statement produce the run-time error message
"Out of memory" (on DOS versions 2.x through 3.30). The following
example produces the "Out of memory" error message:
ENVIRON "PATH=C:\COBOL"
The following example usually works correctly; however, the ENVIRON
statement is not very practical in QuickBasic:
ENVIRON "PATH=;"
Expanding the environment table cannot be done in a QuickBasic program
because the size of the environment table is limited to its size
rounded up to the nearest multiple of 16 bytes, when QuickBasic or a
QuickBasic program is initiated.
QuickBasic does not modify the actual DOS environment table; it only
modifies a local copy.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB21963 |
|