Grid Cleanup
Hi,
I'm getting an exception when closing out some grids, can you throw some light on what could be causing it. I am probably trying to do something that shouldn't be done, but can't get an idea as where this exception is being thrown. Is there a recommended way of cleaning up a form with a grid.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Grid'.
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at Dapfor.Net.Internal.ScrollManager.SetVerticalScroll(Int32 pos, Int32 max, Int32 pageSize, Boolean redraw)
at Dapfor.Net.Internal.ScrollableLayout.SetVerticalScroll(Int32 position)
at Dapfor.Net.Internal.ScrollableLayout.RebuildCache()
at Dapfor.Net.Internal.ScrollableLayout.DoShowRow(Node node)
at Dapfor.Net.Internal.ScrollableLayout.OnShowRow(Node node, Int32 index)
at Dapfor.Net.Internal.PrivateContext.OnRowsAdded(Object sender, AddRowEventArgs e)
at Dapfor.Net.Internal.RowContainer.Insert(Int32 where, RowItem item, Boolean sort)
at Dapfor.Net.Internal.Node.Show()
at Dapfor.Net.Internal.Node.set_Filtered(Boolean value)
at Dapfor.Net.Internal.Node.SafeAddToChildren(Node node, Nullable`1 where)
at Dapfor.Net.Internal.Node.AddToChildrenTask.Execute(Node parent, IDataAccessor childAccessor, Nullable`1 where, Node& fakeNode)
at Dapfor.Net.Internal.Node.AddChild(Nullable`1 where, IDataAccessor childDataAccessor, Node& fakeNode)
at Dapfor.Net.Internal.Node.BindingListHandler.AddNewObject(Object value, Int32 index)
at Dapfor.Net.Internal.Node.BindingListHandler.OnSafeListChanged(Object sender, ListChangedEventArgs e)
at Dapfor.Net.Internal.Node.BindingListHandler.ListChangedTask.Execute(BindingListHandler node, Object sender, ListChangedEventArgs e)
at Dapfor.Net.Internal.Node.BindingListHandler.ListChangedTask.Execute()
at Dapfor.Net.Threading.GuiDispatcher.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Thanks.
-
Hi,
Which version of the grid do you use?
Regards,
Dapfor
0 -
I'm using version 2.9.2
0 -
Hi,
We've improved the cleanup strategy in the version 2.9.3 and normally this problem is fixed.
Regards,
Dapfor
0 -
Dear Deepak,
We've released a new version of the grid, fixing the verbosity bug in VS IDE. We've also optimized notifications from composite objects with non-existing fields.
Kind regards,
Dapfor
0
Please sign in to leave a comment.
Comments
4 comments