VB.EXE "Out of Memory" Printing with Breakpoint Set

ID Number: Q80288

1.00

WINDOWS

buglist1.00

Summary:

If you try to use the Print command from the File menu in VB.EXE to

print a form or code listing, an "Out of memory" error message will be

displayed if one or more breakpoints are set within the program.

Microsoft has confirmed this to be a problem with Visual Basic

programming system version 1.0 for Windows. We are researching this

problem and will post new information here as it becomes available.

More Information:

Steps to Reproduce Problem

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

1. Run Visual Basic, or from the File menu, choose New Project (ALT,

F, N) if Visual Basic is already running. Form1 will be created by

default.

2. Enter the following code in the Form_Click event procedure for

Form1:

Sub Form_Click ()

Beep

End Sub

3. Set a break point on the Beep statement in the code sample in step

2 above (place cursor on the statement and then press Shift+F9).

4. From the File menu, choose Print, and attempt to print the form or

code. This will result in an "Out of memory" error message.

If you remove the breakpoint (place cursor on the statement and press

Shift+F9 again) and repeat step 4 above, the form or code

will print as expected.

Additional reference words: 1.00 break point