"Out of Memory" May Lead to Unstable Visual Basic Environment

ID Number: Q78774

1.00

WINDOWS

Summary:

Once an "Out of Memory" error occurs in a session in the Visual Basic

development environment (VB.EXE), subsequent operations may be

affected. Repeated alert message boxes may appear during the session,

primarily the "Out of Memory" error message, but other errors may

occur in unexpected sequence.

Generally, the best solution is to exit the environment completely and

then re-enter to a new session. Continued operations after the

environment becomes unstable can lead to an "Unrecoverable Application

Error" (UAE) message, and can possibly cause a system hang.

Microsoft is researching this problem and will post new information

here as it becomes available.

This information applies to Microsoft Visual Basic programming system

version 1.0 for Windows.

More Information:

Steps to Reproduce Problem

--------------------------

1. Load a text file into the Global Module (such as the WINAPI.TXT

file that accompanies the Windows Programmer's Guide and

Online Resource) that exceeds the 64 K data segment size of the

Global Module.

2. From the Code menu, choose Load Text. In the subsequent dialog box,

select an oversize text file and press ENTER.

3. When the "Out of Memory" message is displayed, choose OK in the

alert box.

4. From the File menu, choose New Form or New Module.

5. Another "Out of Memory" message is displayed, followed by a another

message that Visual Basic is "Out of Memory."

6. Choose OK and attempt to open a file.

Another "Out of Memory" error will occur, and the file will not load

completely. The environment is corrupted and in an unstable state. At

this point, the only solution is to exit Visual Basic.

Reference(s):

"Microsoft Windows Programmer's Book and Online Resource," Visual

Basic add-on kit number 1-55615-413-5

Additional reference words: 1.00