[Mono-bugs] [Bug 531983] New: Application crashes when i do undoing data in text boxes.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 18 03:44:07 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=531983


           Summary: Application crashes when i do undoing data in text
                    boxes.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: All
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: incubator125 at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=313430)
 --> (http://bugzilla.novell.com/attachment.cgi?id=313430)
test application

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.37 Safari/530.5

My Test application contains two text boxes in which, one is "multiline=true"
and in other "multiline=false". When i do undoing data in text boxes the
application throws an error and crashes.


Reproducible: Always

Steps to Reproduce:
1.Paste some data(i tried the above test data) in the first text box.
2.select last few words in the text box.
3.click backspace or delete button to delete data.
4.again click backspace
5.press ctrl+z then it will throw error and application crashes.
Actual Results:  
Case 1 (Textbox with multiline=false) :

Exception which i got,

System.ArgumentOutOfRangeException: Argument is out of range.
  at System.Text.StringBuilder.ToString (Int32 startIndex, Int32 length)
[0x00000] 
  at System.Windows.Forms.Document.Split (System.Windows.Forms.Line line,
System.Windows.Forms.LineTag tag, Int32 pos) [0x00000] 
  at System.Windows.Forms.Document.Split (System.Windows.Forms.Line line, Int32
pos) [0x00000] 
  at System.Windows.Forms.UndoManager.Insert (System.Windows.Forms.Line line,
Int32 pos, System.Windows.Forms.Line insert, Boolean select) [0x00000] 
  at System.Windows.Forms.UndoManager.Undo () [0x00000] 
  at System.Windows.Forms.TextBoxBase.Undo () [0x00000] 
  at System.Windows.Forms.TextBoxBase.ProcessKey (Keys keyData) [0x00000] 
  at System.Windows.Forms.TextBoxBase.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.TextBox.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00000] 


Case 2 (Textbox with multiline=true):

Throws error and application crahes.

Exception,

System.NullReferenceException: Object reference not set to an instance of an
object
  at System.Windows.Forms.UndoManager.Insert (System.Windows.Forms.Line line,
Int32 pos, System.Windows.Forms.Line insert, Boolean select) [0x00000] 
  at System.Windows.Forms.UndoManager.Undo () [0x00000] 
  at System.Windows.Forms.TextBoxBase.Undo () [0x00000] 
  at System.Windows.Forms.TextBoxBase.ProcessKey (Keys keyData) [0x00000] 
  at System.Windows.Forms.TextBoxBase.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.TextBox.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00000]

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list