Microsoft KB Archive/101596: Difference between revisions
(importing KB archive) |
m (Text replacement - ">" to ">") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
{| | {| | ||
|width="100%"| | |width="100%"| | ||
= PRB: | = PRB: "Out of Environment Space" Error When Using RUN Command = | ||
'''ID: Q101596''' | '''ID: Q101596''' | ||
Line 22: | Line 22: | ||
== SYMPTOMS == | == SYMPTOMS == | ||
You receive an | You receive an "Out of Environment Space" error message when you are using a RUN command in FoxPro to execute a batch file or program that issues SET commands or other commands that take up environment space. | ||
<br /> | <br /> | ||
Line 28: | Line 28: | ||
== CAUSE == | == CAUSE == | ||
When the FoxPro RUN command is issued, it has a default of 256 bytes of environment space. After this 256 bytes is used up, an | When the FoxPro RUN command is issued, it has a default of 256 bytes of environment space. After this 256 bytes is used up, an "Out of Environment Space" error message is displayed. | ||
<br /> | <br /> | ||
Line 36: | Line 36: | ||
Issue the RUN command in the following form: '''''' | Issue the RUN command in the following form: '''''' | ||
<pre class="CODESAMP"> RUN c:\command.com /e: | <pre class="CODESAMP"> RUN c:\command.com /e:<nnnnn> /c <string> </pre> | ||
The /e: | The /e:<nnnnn> parameter specifies the environment size; increasing this parameter (for example, to 2048) will cause the "Out of Environment Space" message to disappear. The /c <string> parameter specifies that the command interpreter is to perform the command specified by <string> and then stop. | ||
<br /> | <br /> | ||
Line 94: | Line 94: | ||
<li><p>Issue the following command in the Command window: ''''''</p> | <li><p>Issue the following command in the Command window: ''''''</p> | ||
<pre class="CODESAMP"> RUN c:\test.bat </pre> | <pre class="CODESAMP"> RUN c:\test.bat </pre> | ||
<p>Note that after the SET test4=4 statement is executed that an | <p>Note that after the SET test4=4 statement is executed that an "Out of Environment Space" error message is displayed.</p></li> | ||
<li>In the CONFIG.SYS file, change the /e: | <li>In the CONFIG.SYS file, change the /e:<nnnnn> environment setting to be twice its current value. Repeat step 2. Note that an "Out of Environment Space" error message is still displayed.</li> | ||
<li><p>Issue the following command in the Command window: ''''''</p> | <li><p>Issue the following command in the Command window: ''''''</p> | ||
<pre class="CODESAMP"> RUN c:\command.com /e:2048 /c c:\test.bat </pre> | <pre class="CODESAMP"> RUN c:\command.com /e:2048 /c c:\test.bat </pre> | ||
<p>Note that the | <p>Note that the "Out of Environment Space" error message is no longer displayed.</p></li></ol> | ||
Additional query words: FoxDos errmsg err msg | Additional query words: FoxDos errmsg err msg |
Latest revision as of 17:41, 20 July 2020
The information in this article applies to:
SYMPTOMSYou receive an "Out of Environment Space" error message when you are using a RUN command in FoxPro to execute a batch file or program that issues SET commands or other commands that take up environment space.
CAUSEWhen the FoxPro RUN command is issued, it has a default of 256 bytes of environment space. After this 256 bytes is used up, an "Out of Environment Space" error message is displayed.
RESOLUTIONIssue the RUN command in the following form: ' RUN c:\command.com /e:<nnnnn> /c <string> The /e:<nnnnn> parameter specifies the environment size; increasing this parameter (for example, to 2048) will cause the "Out of Environment Space" message to disappear. The /c <string> parameter specifies that the command interpreter is to perform the command specified by <string> and then stop.
MORE INFORMATIONIncreasing the /e: parameter on a SHELL statement has no effect on the above error message because when an MS-DOS virtual machine (VM) is started, it does not inherit the settings from the SHELL statement in the CONFIG.SYS; thus, it is necessary to directly specify the environment space needed when starting the MS-DOS shell. Steps to Reproduce the Problem
Additional query words: FoxDos errmsg err msg Keywords : Version : Platform : Issue type : |
Last Reviewed: August 8, 1999 |