[Mono-bugs] [Bug 75388][Nor] New - Cannot delete a row that has been just added

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jun 27 06:08:42 EDT 2005

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


--- shadow/75388	2005-06-27 06:08:42.000000000 -0400
+++ shadow/75388.tmp.18468	2005-06-27 06:08:42.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 75388
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jordi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Cannot delete a row that has been just added
+Adding a row and then deleting it throws an exception.
+DataRow row = users.NewRow ();
+row.Delete ();			
+Unhandled Exception: System.IndexOutOfRangeException: Array index is out of
+range. in <0x00089>
+System.Data.Common.AbstractDataContainer+Int32DataContainer:Compare Values
+(Int32 index1, Int32 index2)
+in <0x0001c> System.Data.DataColumn:CompareValues (Int32 index1, Int32 index2)
+in <0x00050> System.Data.Common.Key:CompareRecords (Int32 first, Int32 second)
+in <0x00053> System.Data.Common.Index:LazyBinarySearch (System.Int32[] a,
+Int32 p, Int32 r, Int32 b)
+in <0x0001c> System.Data.Common.Index:BinarySearch (System.Int32[] a, Int32
+p, I nt32 r, Int32 b)
+in <0x00049> System.Data.Common.Index:FindIndex (Int32 record)
+in <0x0001f> System.Data.Common.Index:Delete (Int32 oldRecord)
+in <0x00030> System.Data.Common.Index:Delete (System.Data.DataRow row)
+in <0x0008c> System.Data.DataTable:DeleteRowFromIndexes
+(System.Data.DataRow row)
+in <0x00098> System.Data.DataRow:Delete ()
+in <0x002bc> MyFormProject.MainForm:CreateDataSet ()

More information about the mono-bugs mailing list