Microsoft KB Archive/76636

= PRB: Invalid in Immediate Window Error When Creating Variable =

Article ID: 76636

Article Last Modified on 12/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 1.0 Standard Edition

-



This article was previously published under Q76636



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, &quot;Out of Stack Space&quot;) 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.



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 &quot;Out of Stack Space&quot; error is displayed.  Close the error message window and enter the following code in the Immediate window: A$ = &quot;123&quot;  At this point, you will receive one of the error messages listed above. If not, repeat steps 3 and 4.</li></ol>

Additional query words: 2.00 3.00

Keywords: kbprb KB76636

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.