https://bugzilla.novell.com/show_bug.cgi?id=459584


           Summary: DataGrid: Crash when clicking NavigateBack button.
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
            Blocks: 428887
          Found By: Beta-Customer


1. Run the attached example.
2. Click "+" to expand the tables, click either Table1 or Table2.
3. Click the NavigateBack button (left arrow button in header)
4. Crash.

Clicking the "Call NavigateBack" button after clicking Table1 or Table2 also
reproduces the crash.

Output:

System.InvalidOperationException: Operation is not valid due to the current
state of the object
  at System.Data.DataColumnPropertyDescriptor.GetValue (System.Object
component) [0x00068] in
/home/mario/repository/mcarrion/mcs/class/System.Data/System.Data/DataColumnPropertyDescriptor.cs:89
 
  at System.Windows.Forms.DataGridColumnStyle.GetColumnValueAtRow
(System.Windows.Forms.CurrencyManager source, Int32 rowNum) [0x00019] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridColumnStyle.cs:441
 
  at System.Windows.Forms.DataGridTextBoxColumn.GetFormattedValue
(System.Windows.Forms.CurrencyManager source, Int32 rowNum) [0x00000] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBoxColumn.cs:362
 
  at System.Windows.Forms.DataGridTextBoxColumn.Paint (System.Drawing.Graphics
g, Rectangle bounds, System.Windows.Forms.CurrencyManager source, Int32 rowNum,
System.Drawing.Brush backBrush, System.Drawing.Brush foreBrush, Boolean
alignToRight) [0x00000] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBoxColumn.cs:271
 
  at System.Windows.Forms.ThemeWin32Classic.DataGridPaintRowContents
(System.Drawing.Graphics g, Int32 row, Rectangle row_rect, Boolean is_newrow,
Rectangle clip, System.Windows.Forms.DataGrid grid) [0x00178] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs:2251
 
  at System.Windows.Forms.ThemeWin32Classic.DataGridPaintRow
(System.Drawing.Graphics g, Int32 row, Rectangle row_rect, Boolean is_newrow,
Rectangle clip, System.Windows.Forms.DataGrid grid) [0x0004e] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs:2292
 
  at System.Windows.Forms.ThemeWin32Classic.DataGridPaintRows
(System.Drawing.Graphics g, Rectangle cells, Rectangle clip,
System.Windows.Forms.DataGrid grid) [0x00152] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs:2060
 
  at System.Windows.Forms.ThemeWin32Classic.DataGridPaint
(System.Windows.Forms.PaintEventArgs pe, System.Windows.Forms.DataGrid grid)
[0x00039] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs:1694
 
  at System.Windows.Forms.DataGrid.OnPaint (System.Windows.Forms.PaintEventArgs
pe) [0x00000] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs:1773
 
  at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m)
[0x0008a] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5567
 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x0016c] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5325
 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:228
 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:209
 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00085] in
/home/mario/repository/mcarrion/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:242
 


Found in trunk and mono-2-2


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to