[Mono-bugs] [Bug 78363][Nor] Changed - Datagrid: crash when clicking on empty region.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri May 12 17:42:36 EDT 2006


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 miguel at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78363

--- shadow/78363	2006-05-12 12:00:31.000000000 -0400
+++ shadow/78363.tmp.30928	2006-05-12 17:42:36.000000000 -0400
@@ -80,6 +80,83 @@
 in <0x00024> System.Windows.Forms.Application:Run
 (System.Windows.Forms.Form mainForm)
 in <0x0001f> DatagridSamples.DataGridSamples:Main (System.String[] args)
 
 ------- Additional Comments From toshok at ximian.com  2006-05-12 12:00 -------
 hm, i saw you reproduce this but I can't now..
+
+------- Additional Comments From miguel at ximian.com  2006-05-12 17:42 -------
+Ok, it took me a while, but here is a way to reproduce it.
+
+Start the app, click on the second button "Properties testing"
+
+Click on the last row (the 4th, its empty), column 1.
+A new row is automatically added.
+Repeat the process (click on last row, now its the 5th).
+
+Do this 4 times, you will get this trace:
+
+Unhandled Exception: System.IndexOutOfRangeException: There is no row
+at position: 7.
+in <0x00091> System.Data.DataView:get_Item (Int32 recordIndex)
+in <0x0000d> System.Data.DataView:System.Collections.IList.get_Item
+(Int32 recordIndex)
+in <0x00034> System.Windows.Forms.CurrencyManager:get_Current ()
+in <0x00013> System.Windows.Forms.CurrencyManager:EndCurrentEdit ()
+in <0x0000b> System.Windows.Forms.CurrencyManager:UpdateItem ()
+in <0x00019> System.Windows.Forms.CurrencyManager:UpdateIsBinding ()
+in <0x00020> System.Windows.Forms.BindingManagerBase:PullData ()
+in <0x0000c> System.Windows.Forms.CurrencyManager:OnCurrentChanged
+(System.EventArgs e)
+in <0x0004e> System.Windows.Forms.CurrencyManager:set_Position (Int32
+value)
+in <0x000e7> System.Windows.Forms.DataGrid:SetCurrentCell
+(DataGridCell value)
+in <0x0016d> System.Windows.Forms.DataGrid:OnMouseDown
+(System.Windows.Forms.MouseEventArgs e)
+in <0x008c1> System.Windows.Forms.Control:WndProc
+(System.Windows.Forms.Message m)
+in <0x00014> System.Windows.Forms.Control+ControlNativeWindow:WndProc
+(System.Windows.Forms.Message m)
+in <0x0011e> System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd,
+Msg msg, IntPtr wParam, IntPtr lParam)
+in <0x00016> System.Windows.Forms.XplatUIX11:DispatchMessage
+(System.Windows.Forms.MSG msg)
+in <0x00015> System.Windows.Forms.XplatUI:DispatchMessage
+(System.Windows.Forms.MSG msg)
+in <0x00611> System.Windows.Forms.Application:RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context)
+in <0x001ae> System.Windows.Forms.Form:ShowDialog (IWin32Window
+ownerWin32)
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Form:ShowDialog (System.Windows.Forms.IWin32Window)
+in <0x000ba> DatagridSamples.DataGridSamples:label2_Click
+(System.Object sender, System.EventArgs e)
+in (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs
+(object,System.EventArgs)
+in <0x0001d> System.Windows.Forms.Control:OnClick (System.EventArgs e)
+in <0x000dd> System.Windows.Forms.Button:OnClick (System.EventArgs e)
+in <0x000f8> System.Windows.Forms.ButtonBase:OnMouseUp
+(System.Windows.Forms.MouseEventArgs mevent)
+in <0x0000d> System.Windows.Forms.Button:OnMouseUp
+(System.Windows.Forms.MouseEventArgs e)
+in <0x0076c> System.Windows.Forms.Control:WndProc
+(System.Windows.Forms.Message m)
+in <0x00060> System.Windows.Forms.ButtonBase:WndProc
+(System.Windows.Forms.Message m)
+in <0x0000d> System.Windows.Forms.Button:WndProc
+(System.Windows.Forms.Message m)
+in <0x00014> System.Windows.Forms.Control+ControlNativeWindow:WndProc
+(System.Windows.Forms.Message m)
+in <0x0011e> System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd,
+Msg msg, IntPtr wParam, IntPtr lParam)
+in <0x00016> System.Windows.Forms.XplatUIX11:DispatchMessage
+(System.Windows.Forms.MSG msg)
+in <0x00015> System.Windows.Forms.XplatUI:DispatchMessage
+(System.Windows.Forms.MSG msg)
+in <0x00611> System.Windows.Forms.Application:RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context)
+in <0x00024> System.Windows.Forms.Application:Run
+(System.Windows.Forms.Form mainForm)
+in <0x0001f> DatagridSamples.DataGridSamples:Main (System.String[] args)
+


More information about the mono-bugs mailing list