[Mono-bugs] [Bug 77808][Nor] New - Crash when adding new rows to DataGrid.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Mar 16 18:55:33 EST 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 peter at novonyx.com.

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

--- shadow/77808	2006-03-16 18:55:33.000000000 -0500
+++ shadow/77808.tmp.19000	2006-03-16 18:55:33.000000000 -0500
@@ -0,0 +1,91 @@
+Bug#: 77808
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: jackson at ximian.com                            
+ReportedBy: peter at novonyx.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Summary: Crash when adding new rows to DataGrid.
+
+Adding new rows causes crash in CurrencyManager.
+
+Run winforms/swf-databinding.exe and scroll to the last row in the top 
+right datagrid, select the item in the last column and press Tab. This 
+will cause a new row to appear, with both columns having (null) as value. 
+Enter stuff, tabbing to the next. When you filled out the second col and 
+are about to add yet another row, it crashes with 
+
+"Index 5 is not non-negative and below total rows count."
+
+This is the stack:
+ 	[<Non-user Code>]	
+>	system.windows.forms.dll!
+System.Windows.Forms.CurrencyManager.get_Current() Line 94 + 0x10 bytes	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.CurrencyManager.EndCurrentEdit() Line 210 + 0x7 bytes
+	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.CurrencyManager.UpdateItem() Line 278	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.CurrencyManager.UpdateIsBinding() Line 270	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.BindingManagerBase.PullData() Line 114	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.CurrencyManager.OnCurrentChanged(System.EventArgs e = 
+{System.EventArgs}) Line 234	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.CurrencyManager.set_Position(int value = 5) Line 115
+	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.DataGrid.SetCurrentCell
+(System.Windows.Forms.DataGridCell value = 
+{System.Windows.Forms.DataGridCell}) Line 1944	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.DataGrid.ProcessGridKey
+(System.Windows.Forms.KeyEventArgs ke = 
+{System.Windows.Forms.KeyEventArgs}) Line 1545	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.DataGrid.ProcessKeyPreviewInternal
+(System.Windows.Forms.Message m = {System.Windows.Forms.Message}) Line 
+1626 + 0xb bytes	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.DataGridTextBox.ProcessKeyMessage
+(System.Windows.Forms.Message m = {System.Windows.Forms.Message}) Line 158 
++ 0x10 bytes	C#
+ 	system.windows.forms.dll!System.Windows.Forms.TextBoxBase.WndProc
+(System.Windows.Forms.Message m = {System.Windows.Forms.Message}) Line 
+1137 + 0xc bytes	C#
+ 	system.windows.forms.dll!System.Windows.Forms.TextBox.WndProc
+(System.Windows.Forms.Message m = {System.Windows.Forms.Message}) Line 231
+	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.DataGridTextBox.WndProc(System.Windows.Forms.Message 
+m = {System.Windows.Forms.Message}) Line 179	C#
+ 	system.windows.forms.dll!ControlNativeWindow.WndProc
+(System.Windows.Forms.Message m = {System.Windows.Forms.Message}) Line 159
+	C#
+ 	system.windows.forms.dll!System.Windows.Forms.NativeWindow.WndProc
+(int hWnd = 1574696, System.Windows.Forms.Msg msg = WM_KEYDOWN, int wParam 
+= 9, int lParam = 983041) Line 145 + 0xa bytes	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.XplatUIWin32.DispatchMessage(System.Windows.Forms.MSG 
+msg = {System.Windows.Forms.MSG}) Line 1428 + 0x8 bytes	C#
+ 	system.windows.forms.dll!
+System.Windows.Forms.XplatUI.DispatchMessage(System.Windows.Forms.MSG msg 
+= {System.Windows.Forms.MSG}) Line 384 + 0x10 bytes	C#
+ 	system.windows.forms.dll!System.Windows.Forms.Application.RunLoop
+(bool Modal = false, System.Windows.Forms.ApplicationContext context = 
+{System.Windows.Forms.ApplicationContext}) Line 394 + 0x9 bytes	C#
+ 	system.windows.forms.dll!System.Windows.Forms.Application.Run
+(System.Windows.Forms.Form mainForm = {MyFormProject.MainForm}) Line 292
+	C#
+ 	swf-databinding.exe!MyFormProject.MainForm.Main(string[] args = 
+{Length=0}) Line 184	C#


More information about the mono-bugs mailing list