KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q50466: QB.EXE 4.50 May Lose SUB During SUB Move If "Out of Memory"

Article: Q50466
Product(s): See article
Version(s): 4.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | SR# S891026-32 buglist4.50 B_BasicCom | mspl13_basic
Last Modified: 15-DEC-1989

If an "OUT OF MEMORY" error message results from moving a SUBprogram
via the Move button in the SUBS... option (F2 hotkey) from the View
menu in the QB.EXE editor in QuickBASIC Version 4.50, the SUBprogram
may be lost.

This problem occurs only with very large, multiple-module programs
that are running out of available memory. Any program that is large
enough to create this problem is usually too large to effectively run
in QB.EXE. To avoid this problem, use programs that do not approach
the memory limitations of your machine.

Microsoft has confirmed this to be a problem in QuickBASIC Version
4.50 for MS-DOS. This problem was corrected in QBX.EXE of Microsoft
BASIC PDS Version 7.00 (fixlist7.00).

To reproduce this problem, perform the following steps:

1. Use a large multiple-module program.

2. Load all the modules into QB.EXE.

3. Choose the SUBS... option from the View menu (or press F2).

4. Highlight a SUBprogram or FUNCTION.

5. Choose the Move option.

6. Pick a destination module.

7. To duplicate the problem, you must receive an "OUT OF MEMORY"
   message at this point. If you View that SUBprogram, it will have
   lost its contents.

8. If you were not able to reproduce the problem, increase the size of
   one or more of the modules and repeat from Step 3.

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.