Hi, my tester is getting such an exception after having the app longer time in background:
System.ComponentModel.Win32Exception
Message:
Neplatný popisovač okna ------> it means "invalid window handle"
Stack Trace:
at MS.Win32.UnsafeNativeMethods.GetParent(HandleRef hWnd)
at System.Windows.Interop.HwndHost.CalculateAssignedRC(PresentationSource source)
at System.Windows.Interop.HwndHost.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at Xceed.Wpf.AvalonDock.Controls.LayoutAutoHideWindowControl.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndHost.SubclassWndProc(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)
NativeErrorCode:
1400
ErrorCode:
-2147467259
TargetSite:
IntPtr GetParent(System.Runtime.InteropServices.HandleRef)
Source:
WindowsBase
HResult:
-2147467259
it is perhaps corrected in the 2.9.0 plus edition. is there some solution for the community edition?
Thanks, Ludek.
Comments: ** Comment from web user: Boumbles **
System.ComponentModel.Win32Exception
Message:
Neplatný popisovač okna ------> it means "invalid window handle"
Stack Trace:
at MS.Win32.UnsafeNativeMethods.GetParent(HandleRef hWnd)
at System.Windows.Interop.HwndHost.CalculateAssignedRC(PresentationSource source)
at System.Windows.Interop.HwndHost.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at Xceed.Wpf.AvalonDock.Controls.LayoutAutoHideWindowControl.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndHost.SubclassWndProc(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)
NativeErrorCode:
1400
ErrorCode:
-2147467259
TargetSite:
IntPtr GetParent(System.Runtime.InteropServices.HandleRef)
Source:
WindowsBase
HResult:
-2147467259
it is perhaps corrected in the 2.9.0 plus edition. is there some solution for the community edition?
Thanks, Ludek.
Comments: ** Comment from web user: Boumbles **
In particular. We get this if the application is running and the user accesses the machine it's running on via remote desktop. This only occurs if the machine is on Windows 10, OR Windows 7 and has some sort of desktop management software installed (eg: DisplayFusion).