Microsoft KB Archive/94774

= FIX: GPF When Using 8514 Driver with Long String in Text Box =

Article ID: 94774

Article Last Modified on 1/8/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition

-



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.



Steps to Reproduce Problem
 Load the Windows 8514 driver (8514.DRV) by using the Windows Setup program. Start Visual Basic, or from the File menu, choose New Project if Visual Basic is already running. Form1 is created by default. Add a text box (Text1) to Form1. Press the F4 key to select the Properties Window. Set the Multiline property to True and the ScrollBars property to 3 - Both.  Add the following code to the Form_Click event procedure of Form1: For i% = 1 To 100 text1.SelStart = Len(text1.Text) text1.SelText = &quot;This is a test&quot; Next i%                        Press the F5 key to run the code.</li></ol>

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.

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

Keywords: kbbug kbfix KB94774

-

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

© Microsoft Corporation. All rights reserved.