Microsoft KB Archive/94698

= FIX: No Out of Memory Error Generated with Text Box > 32K =

Article ID: 94698

Article Last Modified on 1/9/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition

-



This article was previously published under Q94698



SYMPTOMS
The text box in Microsoft Visual Basic version 2.0 for Windows has the capacity to hold up to 32K of text. The problem is that when you try to place more than 32K of text in a text box, no error is generated and no text is added to the text box.



STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual Basic version 2.0 for Windows. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows.



Steps to Reproduce Problem
 Start Visual Basic or from the File menu, choose New Project (ALT, F, N) if Visual Basic is already running. Form1 is created by default. Add a text box (Text1) to Form1. Set the Multiline property of Text1 to True. Set the Scrollbars property of Text1 to 2 - Vertical.  Add the following code to the Form_Click event procedure in Form1: Sub Form_Click For i% = 1 to 10000 text1.seltext = Format$(i%, &quot;00000&quot;) + Chr$(13) + Chr$(10) Next i%  End Sub  Press the F5 key to run the procedure and click the Form1 form.</li></ol>

You will see text being added to the text box, but the adding of the text (numbers) stops around the number 04285 and no error is generated. Visual Basic should give you an Out of Memory error message, but it doesn't.

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

Keywords: kbbug kbfix KB94698

-

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

© Microsoft Corporation. All rights reserved.