View previous topic :: View next topic |
Author |
Message |
z00rg
Joined: 03 Jan 2006 Posts: 12
|
Posted: Fri Sep 15, 2006 3:47 pm Post subject: Exception while decreasing the records in the datasource |
|
|
Hi, i have a operation in which the number of records decrease while doing a filter operation on the recordset.
and i encountered this exception, could you help me with this, i am using the version 2.3.2
Paged system memory size: 293804
Peak paged memory size: 46391296
Peak virtual memory size: 238874624
Peak working set: 54431744
Private memory size: 46374912
Virtual memory size: 238874624
Working set: 54431744
*************** Exception Text ****************
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.ArrayListEnumeratorSimple.MoveNext()
at Infralution.Controls.Widget.OnPaint(Graphics graphics)
at Infralution.Controls.VirtualTree.RowWidget.OnPaint(Graphics graphics)
at Agilent.DVS.SPT.SerialProtocolSuite.Widgets.RowWidget.OnPaint(Graphics graphics)
at Infralution.Controls.Widget.OnPaint(Graphics graphics)
at Infralution.Controls.WidgetControl.PaintWidgets(Graphics graphics, Rectangle clipRectangle)
at Infralution.Controls.WidgetControl.OnPaint(PaintEventArgs e)
at Infralution.Controls.VirtualTree.VirtualTree.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Infralution.Controls.BorderedControl.WndProc(Message& m)
at Infralution.Controls.VirtualTree.VirtualTree.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam): Collection was modified; enumeration operation may not execute.
at System.Collections.ArrayListEnumeratorSimple.MoveNext()
at Infralution.Controls.Widget.OnPaint(Graphics graphics)
at Infralution.Controls.VirtualTree.RowWidget.OnPaint(Graphics graphics)
at Agilent.DVS.SPT.SerialProtocolSuite.Widgets.CustomRowWidget.OnPaint(Graphics graphics)
at Infralution.Controls.Widget.OnPaint(Graphics graphics)
at Infralution.Controls.WidgetControl.PaintWidgets(Graphics graphics, Rectangle clipRectangle)
at Infralution.Controls.WidgetControl.OnPaint(PaintEventArgs e)
at Infralution.Controls.VirtualTree.VirtualTree.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Infralution.Controls.BorderedControl.WndProc(Message& m)
at Infralution.Controls.VirtualTree.VirtualTree.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Sep 18, 2006 6:44 am Post subject: |
|
|
You should definitely download the latest version (2.6.1) as I think this problem will be resolved. _________________ Infralution Support |
|
Back to top |
|
|
z00rg
Joined: 03 Jan 2006 Posts: 12
|
Posted: Mon Sep 18, 2006 2:49 pm Post subject: |
|
|
Thanks for the quick response..
Unfortunately i am too late to get the latest version of your software as i am near to the release date, and i dont want to take any new risk.
As i have your source code could you tell what changes in the code i need to to resolve this bug.
Thanks |
|
Back to top |
|
|
z00rg
Joined: 03 Jan 2006 Posts: 12
|
Posted: Mon Sep 18, 2006 7:54 pm Post subject: |
|
|
Thanks, i compared the Widget.cs and WidgetControl.cs with the your latest version of the code and figured out the patch need to fix this bug. |
|
Back to top |
|
|
|