FIX: UAE/GPF When Use Static Array in Event Procedure After F5

ID: Q93257


The information in this article applies to:
  • Microsoft Visual Basic Standard Edition for Windows, version 2.0


SYMPTOMS

Under very specific conditions, if you add a Static array to an event procedure, a General Protection Fault (GPF) or Unrecoverable Application Error (UAE) can occur. This problem is described in further detail below.


STATUS

Microsoft has confirmed this to be a problem in the Standard Edition of Microsoft Visual Basic for Windows, version 2.0. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows.


MORE INFORMATION

Steps to Reproduce Problem

  1. Start VB.EXE.


  2. Press F5 to run the current project and then choose the 'End' option fro the 'Run' menu to stop.


  3. Add the following line of code to the Form_Load event procedure of Form1:
    
       static F(10) As String ' ** Do not hit the Enter or Return key
                             ' ** to proceed to the next line. Keep
                             ' ** the focus on the same line, you
                             ' ** should not see any blue colored
                             ' ** text, you should only see black text. 


  4. With the cursor on the same line as the 'static' statement, minimize the code window by clicking the minimize arrow of the code window.


  5. Press the F5 key to run the project and a GPF or UAE occurs. However, if you press the Enter key after typing the line in the Form_Load event procedure, you will not encounter this problem. You should now see the words 'Static', 'As' and 'String' in the color of blue text. This informs you that the line of code has been parsed by the P-code interpreter.


Additional query words: buglist2.00 fixlist3.00 2.00 3.00

Keywords :
Version : WINDOWS:2.0
Platform : WINDOWS
Issue type :


Last Reviewed: January 20, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.