Q62815: "Not Enough Memory on Exec" When Using RUN with ISAM File Open
Article: Q62815
Product(s): See article
Version(s): 7.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | SR# S900525-29 buglist7.00 fixlist7.10 | mspl13_basic
Last Modified: 6-AUG-1990
From within the QBX.EXE environment or a compiled program, an attempt
to execute a RUN statement while there are open ISAM files results in
the run-time error R6007, "Not enough memory on EXEC." The RUN
statement is documented as having the ability to close all files;
therefore, this error should not occur.
Microsoft has confirmed this to be a problem in Microsoft BASIC
Professional Development System (PDS) version 7.00 for MS-DOS. This
problem was corrected in BASIC PDS version 7.10.
To work around the problem in version 7.00, CLOSE all ISAM files
before executing a RUN statement.
The following code example demonstrates the problem:
Code Example
------------
TYPE testtype
test AS INTEGER
END TYPE
OPEN "test.dat" FOR ISAM testtype "runexe" AS #1
'CLOSE 'If this line is put in, the program will run correctly
RUN "test"
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.