Posted 22 December 2020, 10:45 pm EST
Getting visual is not connected to a Presentationsource Error While Docking the docktabcontrol inside dockcontrol not able to reproduce the issue because it is occurring randomly. Below I have attached the exception details.
System.InvalidOperationException
HResult=0x80131509
Message=This Visual is not connected to a PresentationSource.
Source=PresentationCore
StackTrace:
at System.Windows.Media.Visual.PointToScreen(Point point)
at #cKb.#cLb.#XKb(Object #F, MouseEventArgs #9l)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.ShowDialog()
at KT.ACE.GUI.AnalyticVisualizerController.OpenAnalyticVisualizer(NodeIdentity nodeIdentity) in E:\Klarity Ace Sources\ACE_DEVELOPMENT 24.0.20\ace_xp\Source\Application\GUI\OutputDisplayManager\AnalyticVisualizerController.cs:line 115
at KT.ACE.GUI.ACE_Main.ConfigureAnalyticVisualizer()
at KT.ACE.GUI.ACE_Main.dnbmACE_Main_ItemClick(Object sender, EventArgs e)
at DevComponents.DotNetBar.DotNetBarManager.8X(BaseItem 2EB)
at DevComponents.DotNetBar.BaseItem.RaiseClick()
at DevComponents.DotNetBar.DotNetBarManager.HO(eShortcut 2GN)
at DevComponents.DotNetBar.DotNetBarManager.8E(IntPtr 2GK, IntPtr 2GL, IntPtr 2GM)
at DevComponents.DotNetBar.05.N3(IntPtr 2R8, IntPtr 2R9, IntPtr 2RA)
at System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at KT.ACE.GUI.ACE_Main.Main(String args)
Thanks & Regards
B.Santhosh