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

Last reviewed: October 30, 1997
Article ID: Q94774
2.00 WINDOWS kbprg kbbuglist

The information in this article applies to:

- Microsoft Visual Basic programming system for Windows, version 2.0

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.


Additional reference words: buglist2.00 fixlist3.00 2.00 3.00
KBCategory: kbprg kbbuglist
KBSubcategory: PrgCtrlsStd
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.