FIX: No Out of Memory Error Generated with Text Box > 32K
ID: Q94698
|
The information in this article applies to:
-
Microsoft Visual Basic programming system for Windows, version 2.0
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.
MORE INFORMATION
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%, "00000") + Chr$(13) + Chr$(10)
Next i%
End Sub
- Press the F5 key to run the procedure and click the Form1 form.
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 :
Version :
Platform :
Issue type :