Hello,
from time to time we get an unhandled exception from the DockManager telling that "A deffered show is already in progress".
What is the reason for this exception and how can it be fixed?
Here is the call stack:
[Window Title]
An unhandled exception has occured.
[Content]
System.InvalidOperationException: A deferred show is already in progress.
at Infragistics.Windows.Controls.ToolWindow.ShowImpl(FrameworkElement owner)
at Infragistics.Windows.Controls.ToolWindow.ShowAsync(FrameworkElement owner, Boolean activate, Boolean preferPopup)
at Infragistics.Windows.DockManager.DockManagerUtilities.ShowToolWindow(ToolWindow window, FrameworkElement owner, Boolean activate)
at Infragistics.Windows.DockManager.PaneToolWindow.ShowHelper()
at Infragistics.Windows.DockManager.PaneToolWindow.set_IsWindowLoaded(Boolean value)
at Infragistics.Windows.DockManager.XamDockManager.SetIsWindowLoaded(PaneToolWindow window, Boolean loaded)
at Infragistics.Windows.DockManager.XamDockManager.SetIsWindowLoaded(Boolean loaded)
at Infragistics.Windows.DockManager.XamDockManager.VerifyFloatingWindowVisibility()
at Infragistics.Windows.DockManager.XamDockManager.OnDockManagerLoaded(Object sender, RoutedEventArgs e)
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.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Thank you for your post. I have been looking into it and I can say that if you could send us an isolated sample project, where the issue is reproduced and the steps we need to follow, we will be happy to assist you further.
Looking forward for your reply.
Hello Stefan,
unfortunately, the issue shows up sporadically. So it is not so easy to provide an isolated sample project with steps how to reproduce.
But if I google this issue I find several hits also related to the Infragistics DockManager, therefore I assume that this issue must already be known to the team. Could you please ask in the developer team, if this issue is known already?
BTW: We are using InfragisticsWPF4.DockManager.v11.1
Kind regards,
Rainer
Hello Reiner,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Hello... any response to my reproduction case below?
Thanks.
Hello Matthew,
Could please try to isolate a sample project and send it to us, so we could be able to investigate this further for you? Also it will be very helpful if you tell us the steps we need to follow in order to reproduce this.
I have tested your scenario and I wasn't able to reproduce your issue. I connected to a RDP, start the application, close the connection and then open the connection again. I attached the sample I used for testing. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation. Also if the steps you follow are different could you please write them, so we could reproduce this on our side?
You should have enough evidence from my description and stack trace and issue reported above to reproduce the issue. Please use your own sample code for XamDockManager and a RDP session to reproduce the exception.
FYI, there is an open support case on these issues (CAS-132383-Y6R0Z1)