FIX: GPF When Using 8514 Driver with Long String in Text Box (94774)



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition for Windows 2.0

This article was previously published under Q94774

SYMPTOMS

A general protection (GP) fault may occur when you attempt to assign a string longer than 256 characters to a text box. This problem is known to occur when using an ATI Ultra video system with the 8514 Windows video driver.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Visual Basic version 2.0 for Windows when using Windows version 3.1 and the 8514 Windows video driver. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. Load the Windows 8514 driver (8514.DRV) by using the Windows Setup program.
  2. Start Visual Basic, or from the File menu, choose New Project if Visual Basic is already running. Form1 is created by default.
  3. Add a text box (Text1) to Form1.
  4. Press the F4 key to select the Properties Window. Set the Multiline property to True and the ScrollBars property to 3 - Both.
  5. Add the following code to the Form_Click event procedure of Form1:
          For i% = 1 To 100
             text1.SelStart = Len(text1.Text)
             text1.SelText = "This is a test"
          Next i%
    						
  6. Press the F5 key to run the code.
At this point, you may encounter a GP fault when the length of the string being built in the text box is longer than 256 characters. Note that on some computers, the GP Fault may occur earlier when the total length of the text reaches about 150 characters.

Modification Type:MinorLast Reviewed:1/8/2003
Keywords:kbbug KB94774