A
Asif
Hi all,
I am using Visio 2003 control in my application using VB.NET 2003.I
have upgraded application from 2003 to 2005 along with change of Visio
control from 2003 to 2007.
Application runs normally after migration but some times crashes with
the following error.
System.Runtime.InteropServices.COMException (0x80070006): The handle
is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
at Microsoft.Office.Interop.VisOcx.IDrawingControl.get_Window()
at AxMicrosoft.Office.Interop.VisOcx.AxDrawingControl.get_Window()
at SigmaFlowVisio.basProcessMenu.setZoomValue(VSDocument
currentdocument, Object sender)
at
SigmaFlowVisio.frmMainForm.VisioToolbarsManager_AfterToolActivate(Object
sender, ToolEventArgs e)
at
Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnAfterToolActivate(ToolEventArgs
e)
at
Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds
id, EventArgs e)
at
Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.InternalSetActiveTool(ToolBase
tool, Boolean setOn, Boolean clearToolBeingEdited, Boolean
clearToolbarWithCaptureIfNecessary)
at
Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.set_ActiveTool(ToolBase
value)
at
Infragistics.Win.UltraWinToolbars.ControlContainerTool.OnControlEnter(Object
sender, EventArgs args)
at System.Windows.Forms.Control.OnEnter(EventArgs e)
at System.Windows.Forms.Control.NotifyEnter()
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
I am not sure about the actual cause of this error but may be it
happens after application opens, did not perform any action for long
time and them perform some action like close application or open some
other form. This error was never seen before migration. (Application
was not upgraded to VS 2005).
Can any on help me about why it is happening and what is the
workaround for it.
Thanks a lot.
I am using Visio 2003 control in my application using VB.NET 2003.I
have upgraded application from 2003 to 2005 along with change of Visio
control from 2003 to 2007.
Application runs normally after migration but some times crashes with
the following error.
System.Runtime.InteropServices.COMException (0x80070006): The handle
is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
at Microsoft.Office.Interop.VisOcx.IDrawingControl.get_Window()
at AxMicrosoft.Office.Interop.VisOcx.AxDrawingControl.get_Window()
at SigmaFlowVisio.basProcessMenu.setZoomValue(VSDocument
currentdocument, Object sender)
at
SigmaFlowVisio.frmMainForm.VisioToolbarsManager_AfterToolActivate(Object
sender, ToolEventArgs e)
at
Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnAfterToolActivate(ToolEventArgs
e)
at
Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds
id, EventArgs e)
at
Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.InternalSetActiveTool(ToolBase
tool, Boolean setOn, Boolean clearToolBeingEdited, Boolean
clearToolbarWithCaptureIfNecessary)
at
Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.set_ActiveTool(ToolBase
value)
at
Infragistics.Win.UltraWinToolbars.ControlContainerTool.OnControlEnter(Object
sender, EventArgs args)
at System.Windows.Forms.Control.OnEnter(EventArgs e)
at System.Windows.Forms.Control.NotifyEnter()
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
I am not sure about the actual cause of this error but may be it
happens after application opens, did not perform any action for long
time and them perform some action like close application or open some
other form. This error was never seen before migration. (Application
was not upgraded to VS 2005).
Can any on help me about why it is happening and what is the
workaround for it.
Thanks a lot.