[Mono-bugs] [Bug 82415][Nor] New - RichEdit.AppendText throws OOM Exception
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Aug 11 21:52:17 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by charlie at nunit.com.
http://bugzilla.ximian.com/show_bug.cgi?id=82415
--- shadow/82415 2007-08-11 21:52:17.000000000 -0400
+++ shadow/82415.tmp.14046 2007-08-11 21:52:17.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 82415
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details: Windows XP
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: charlie at nunit.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: RichEdit.AppendText throws OOM Exception
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Repeatedly calling AppendText on a RichEdit control after the control has
+been created causes an Out Of Memory Exception.
+
+
+Steps to reproduce the problem:
+1. Compile this test
+
+using System;
+using System.Windows.Forms;
+
+namespace MonoTests
+{
+ /// <summary>
+ /// Summary description for Main.
+ /// </summary>
+ public class Program
+ {
+ public static void Main()
+ {
+ RichTextBox textBox = new RichTextBox();
+ textBox.CreateControl();
+ for( int i = 1; i <= 1000; i++ )
+ textBox.AppendText( string.Format( "This is line {0}", i ) );
+ Console.WriteLine( "Test Completed!" );
+ }
+ }
+}
+
+2. Run under Windows: Test Completed!
+
+3. Run under Mono: Exception is thrown
+
+Actual Results:
+
+
+Expected Results:
+
+
+How often does this happen?
+
+
+Additional Information:
+It doesn't happen with a standard textbox.
+It doesn't happen if you comment out the CreateControl() line.
+I haven't tried it under Linux.
More information about the mono-bugs
mailing list