PRB: Invalid in Immediate Window Error When Creating Variable
ID: Q76636
|
The information in this article applies to:
-
Microsoft Visual Basic Standard and Professional Editions for Windows, versions 2.0, 3.0
-
Microsoft Visual Basic programming system for Windows, version 1.0
SYMPTOMS
One of the following error messages may occur when you attempt to
create a new variable in the VB.EXE Immediate window:
Invalid in Immediate Window
-or-
Invalid in Debug Window
CAUSE
This error message may occur if your program has encountered a serious
error (for example, "Out of Stack Space") from which the program cannot
continue. The current program must be able to continue for variables to be
created in the Immediate window.
RESOLUTION
Exit Visual Basic.
STATUS
This behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
- Start Visual Basic, or choose New Project from the File menu if Visual
Basic is already running.
- Double-click Form1 to open a code window. In the Form_Click
event procedure, enter the following code:
Call Form_Click
- Execute the program and click Form1. An "Out of Stack Space" error is
displayed.
- Close the error message window and enter the following code in the
Immediate window:
A$ = "123"
- At this point, you will receive one of the error messages listed above.
If not, repeat steps 3 and 4.
Additional query words:
2.00 3.00
Keywords :
Version : WINDOWS:1.0,2.0,3.0
Platform : WINDOWS
Issue type :