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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=79580 --- shadow/79580 2006-10-04 11:31:47.000000000 -0400 +++ shadow/79580.tmp.11815 2006-10-04 11:31:47.000000000 -0400 @@ -0,0 +1,72 @@ +Bug#: 79580 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Blocker +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: NRE when pasting to TextBox + +Description of Problem: +Take a multiline textbox that is empty, and paste in enough text that will +cause word wrap and that has spaces in it. The app will crash with the NRE: + +Unhandled Exception: System.NullReferenceException: Object reference not +set to an instance of an object + at System.Windows.Forms.Document.Insert (System.Windows.Forms.Line line, +System.Windows.Forms.LineTag tag, Int32 pos, Boolean update_caret, +System.String s) [0x00000] + at System.Windows.Forms.Document.ReplaceSelection (System.String s) +[0x00000] + at System.Windows.Forms.TextBoxBase.set_SelectedText (System.String +value) [0x00000] + at System.Windows.Forms.TextBoxBase.Paste (IDataObject clip, +System.Windows.Forms.Format format, Boolean obey_length) [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+ControlNativeWindow.WndProc +(System.Windows.Forms.Message m) [0x00000] + at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, +IntPtr wParam, IntPtr lParam) [0x00000] + at (wrapper native-to-managed) System.Windows.Forms.NativeWindow:WndProc +(intptr,System.Windows.Forms.Msg,intptr,intptr) + at <0x00000> <unknown method> + at (wrapper managed-to-native) +System.Windows.Forms.XplatUIWin32:Win32DispatchMessage +(System.Windows.Forms.MSG&) + at System.Windows.Forms.XplatUIWin32.DispatchMessage +(System.Windows.Forms.MSG msg) [0x00000] + at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG +msg) [0x00000] + at System.Windows.Forms.Application.RunLoop (Boolean Modal, +System.Windows.Forms.ApplicationContext context) [0x00000] + at System.Windows.Forms.Application.Run (System.Windows.Forms.Form +mainForm) [0x00000] + at TextBoxScroll.MainForm.Main (System.String[] args) [0x00000] + +Steps to reproduce the problem: +1. Compile attached sample. +2. "Paste this text right here twice into the textbox to make it crash!" + +Actual Results: +App crashes with above NRE. + +Expected Results: +Paste works without crashing. + +How often does this happen? +Always + +Additional Information: _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
