"Out of Memory" Using More than One CLEAR Statement (33051)



The information in this article applies to:

  • Microsoft QuickBASIC 1.0
  • Microsoft BASIC Compiler
  • Microsoft BASIC Interpreter for Apple Macintosh 2.0
  • Microsoft BASIC Interpreter for Apple Macintosh 2.1
  • Microsoft BASIC Interpreter for Apple Macintosh 3.0

This article was previously published under Q33051

SUMMARY

Using multiple CLEAR statements can generate an "Out of Memory" error message in Macintosh QuickBASIC programs. There should be only one CLEAR statement in a program and it should appear at the beginning of the program. Problems can arise if the program reallocates memory after large portions of the stack and heap are already being used by the program.

This information applies to Microsoft QuickBASIC Version 1.00, Microsoft BASIC Compiler Version 1.00, and Microsoft BASIC Interpreter Versions 2.00, 2.10, and 3.00 for the Apple Macintosh.

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:KB33051