Microsoft KB Archive/93257

From BetaArchive Wiki
Knowledge Base


Article ID: 93257

Article Last Modified on 1/9/2003



APPLIES TO

  • Microsoft Visual Basic 2.0 Standard Edition



This article was previously published under Q93257

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: kbbug kbfix KB93257