Description:
I created some insert rows, then clicked twice on the column header (but it sorts only ascending) then while i was right clicking on 'Delete selected row' the program crashed, here's the bug info:
Exception = System.AccessViolationException
Message = Tentativo di lettura o scrittura della memoria protetta. Spesso questa condizione indica che altre parti della memoria sono danneggiate.
FullText = System.AccessViolationException: Tentativo di lettura o scrittura della memoria protetta. Spesso questa condizione indica che altre parti della memoria sono danneggiate.
in MySQL.Grt.ListModel.delete_node(NodeId node)
in MySQL.Utilities.GridView.OnRowsRemoved(Object sender, DataGridViewRowsRemovedEventArgs e)
in System.Windows.Forms.DataGridView.OnRowsRemoved(DataGridViewRowsRemovedEventArgs e)
in System.Windows.Forms.DataGridView.OnRowsRemovedInternal(Int32 rowIndex, Int32 rowCount)
in System.Windows.Forms.DataGridViewRowCollection.OnCollectionChanged_PostNotification(CollectionChangeAction cca, Int32 rowIndex, Int32 rowCount, DataGridViewRow dataGridViewRow, Boolean changeIsDeletion, Boolean changeIsInsertion, Boolean recreateNewRow, Point newCurrentCell)
in System.Windows.Forms.DataGridViewRowCollection.OnCollectionChanged(CollectionChangeEventArgs e, Int32 rowIndex, Int32 rowCount, Boolean changeIsDeletion, Boolean changeIsInsertion, Boolean recreateNewRow, Point newCurrentCell)
in System.Windows.Forms.DataGridViewRowCollection.RemoveAtInternal(Int32 index, Boolean force)
in System.Windows.Forms.DataGridViewRowCollection.RemoveAt(Int32 index)
in System.Windows.Forms.DataGridViewRowCollection.Remove(DataGridViewRow dataGridViewRow)
in MySQL.Grt.Db.RecordsetView.deleteRowsMenuItem_Click(Object sender, EventArgs e)
in System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
in System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
in System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
in System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
in System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
in System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
in System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
in System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
in System.Windows.Forms.ToolStrip.WndProc(Message& m)
in System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
How to repeat:
Could not repeat.
Suggested fix:
Could it be related to the fact that the column doesn't show the descending sort? If this is done internally but not shown probably the internal indexes become inconsistent.