|
Infralution Support Support groups for Infralution products
|
View previous topic :: View next topic |
Author |
Message |
WaqasK
Joined: 21 Oct 2006 Posts: 32
|
Posted: Sun May 11, 2008 11:16 am Post subject: Maximise/restore down window crash |
|
|
Hi,
I've found that my app running Virtual Tree and Virtual records sometimes crashes when I try to maximise or restore down the application. The error text seems to indicate a problem with Virtual tree. I am using virtual tree 3.8.1 and vistual records 1.2.1:
Code: | See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Reflection.TargetInvocationException: Property accessor 'ID' on object 'RA_GUI.actionsList' threw the following exception:'Operation is not allowed when the object is closed.' ---> System.Runtime.InteropServices.COMException (0x800A0E78): Operation is not allowed when the object is closed.
at ADODB.RecordsetClass.set_AbsolutePosition(PositionEnum pl)
at Infralution.VirtualData.VirtualRecord.GetRecordset()
at Infralution.VirtualData.VirtualRecord.GetValue(String fieldName)
at RA_GUI.actionsList.get_ID()
--- End of inner exception stack trace ---
at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)
at Infralution.Controls.VirtualTree.ObjectCellBinding.GetCellData(Row row, CellData cellData)
at Infralution.Controls.VirtualTree.RowBinding.GetCellData(Row row, Column column, CellData cellData)
at Infralution.Controls.VirtualTree.VirtualTree.OnGetCellData(Row row, Column column, CellData cellData)
at Infralution.Controls.VirtualTree.CellWidget.LoadCellData()
at Infralution.Controls.VirtualTree.CellWidget.OnLayout()
at Infralution.Controls.Widget.set_Bounds(Rectangle value)
at Infralution.Controls.VirtualTree.RowWidget.OnLayout()
at Infralution.Controls.Widget.set_Bounds(Rectangle value)
at Infralution.Controls.VirtualTree.PanelWidget.OnLayout()
at Infralution.Controls.Widget.set_Bounds(Rectangle value)
at Infralution.Controls.VirtualTree.VirtualTree.LayoutWidgets()
at Infralution.Controls.VirtualTree.VirtualTree.OnLayout(LayoutEventArgs e)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
at System.Windows.Forms.Layout.LayoutTransaction.DoLayout(IArrangedElement elementToLayout, IArrangedElement elementCausingLayout, String property)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WmWindowPosChanged(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.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
|
I did not include the "loaded assemblies" part of the error text for the sake of brevity.
Thanks,
Waqas
Last edited by WaqasK on Sun May 11, 2008 11:20 am; edited 1 time in total |
|
Back to top |
|
|
WaqasK
Joined: 21 Oct 2006 Posts: 32
|
Posted: Sun May 11, 2008 11:18 am Post subject: |
|
|
Sorry, i forgot to mention that right after that error mesage another is displayed that is very similar:
Code: | See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime.InteropServices.COMException (0x800A0E78): Operation is not allowed when the object is closed.
at ADODB.RecordsetClass.set_AbsolutePosition(PositionEnum pl)
at Infralution.VirtualData.VirtualRecord.GetRecordset()
at Infralution.VirtualData.VirtualRecord.GetValue(String fieldName)
at Infralution.VirtualData.VirtualRecordPropertyDescriptor.GetValue(Object component)
at Infralution.Controls.VirtualTree.ObjectCellBinding.GetCellData(Row row, CellData cellData)
at Infralution.Controls.VirtualTree.RowBinding.GetCellData(Row row, Column column, CellData cellData)
at Infralution.Controls.VirtualTree.VirtualTree.OnGetCellData(Row row, Column column, CellData cellData)
at Infralution.Controls.VirtualTree.CellWidget.LoadCellData()
at Infralution.Controls.VirtualTree.CellWidget.OnLayout()
at Infralution.Controls.Widget.set_Bounds(Rectangle value)
at Infralution.Controls.VirtualTree.RowWidget.OnLayout()
at Infralution.Controls.Widget.set_Bounds(Rectangle value)
at Infralution.Controls.VirtualTree.PanelWidget.OnLayout()
at Infralution.Controls.Widget.set_Bounds(Rectangle value)
at Infralution.Controls.VirtualTree.VirtualTree.LayoutWidgets()
at Infralution.Controls.VirtualTree.VirtualTree.OnLayout(LayoutEventArgs e)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
at System.Windows.Forms.Layout.LayoutTransaction.DoLayout(IArrangedElement elementToLayout, IArrangedElement elementCausingLayout, String property)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WmWindowPosChanged(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.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) |
Thanks,
Waqas |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sun May 11, 2008 10:47 pm Post subject: |
|
|
The problem is not with VirtualTree but with VirtualData accessing an ADODB record that has been closed. Are you using multiple threads in your application to access records for a single Virtual Data Objects connection? VDO is only safe for single threaded access and multiple threads accessing it may cause this sort of issue.
It would be worthwhile updating to the latest version of Virtual Data Objects (1.4.0) as there have been a number of changes since the version you are using. It would probably also be an opportune time to update Virtual Tree to the latest version (3.10.1) _________________ Infralution Support |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|