KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q33046: QB.EXE Editor Deletes File if Saved with Insufficient Memory

Article: Q33046
Product(s): See article
Version(s): 4.00 4.00b
Operating System(s): MS-DOS
Keyword(s): ENDUSER | buglist4.00 buglist4.00b fixlist4.50 B_BasicCom | mspl13_basic
Last Modified: 11-DEC-1989

If you attempt to save the current file in the QuickBASIC editor and
there is no memory available, the file will be deleted.

Microsoft has confirmed this to be a problem in QuickBASIC Versions
4.00 and 4.00b, and the version of QuickBASIC provided with the BASIC
compiler Versions 6.00 and 6.00b (buglist6.00, buglist6.00b) for
MS-DOS and MS OS/2. This problem was corrected in QuickBASIC Version
4.50 and QBX.EXE of the Microsoft BASIC Compiler Version 7.00
(fixlist7.00).

The following steps duplicate the problem:

1. Enter QuickBASIC.

2. Enter the following program:

      x=setmem(0)
      y=setmem(-x)

3. Save the file.

4. Run the program.

5. Try to modify the program; you will receive an out of memory error.

6. Try to save the file; you will receive an out of data space error.

7. Leave QuickBASIC.

8. The file will no longer be present; however, it usually can be
   "unerased" with Norton's Utilities.

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.