This is a migrated thread and some comments may be shown as answers.

Exception in WindowHost.GetGlobalMousePosition

2 Answers 51 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 05 Mar 2020, 11:43 AM

Hello,

we got a crash report from one of our customers. This cusotmer is using Telerik.WindowsControls.Navigation assembly version 2017.3.913.45.  The exceptiion is in your source code in the WindowHost.GetGlobalMousePosition method. Any idea how to fix this?

stackTrace:

    System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
    ----------------------------------------------------------------------
    bei Telerik.Windows.Controls.WindowHost.GetGlobalMousePosition(UIElement target, MouseEventArgs e):
    ----------------------------------------------------------------------
    bei Telerik.Windows.Controls.InternalWindow.DragBehavior.OnElementMouseLeftButtonUp(Object sender, MouseButtonEventArgs e):
    ----------------------------------------------------------------------
    bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget):
    ----------------------------------------------------------------------
    bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target):
    ----------------------------------------------------------------------
    bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs):
    ----------------------------------------------------------------------
    bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised):
    ----------------------------------------------------------------------
    bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent):
    ----------------------------------------------------------------------
    bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e):
    ----------------------------------------------------------------------
    bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget):
    ----------------------------------------------------------------------
    bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target):
    ----------------------------------------------------------------------
    bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs):
    ----------------------------------------------------------------------
    bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised):
    ----------------------------------------------------------------------
    bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args):
    ----------------------------------------------------------------------
    bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args):
    ----------------------------------------------------------------------
    bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted):
    ----------------------------------------------------------------------
    bei System.Windows.Input.InputManager.ProcessStagingArea():
    ----------------------------------------------------------------------
    bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input):
    ----------------------------------------------------------------------
    bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport):
    ----------------------------------------------------------------------
    bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel):
    ----------------------------------------------------------------------
    bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled):
    ----------------------------------------------------------------------
    bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled):
    ----------------------------------------------------------------------
    bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled):
    ----------------------------------------------------------------------
    bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o):
    ----------------------------------------------------------------------
    bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs):
    ----------------------------------------------------------------------
    bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler):
    ----------------------------------------------------------------------
    bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs):
    ----------------------------------------------------------------------
    bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam):
    ----------------------------------------------------------------------
    bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg):
    ----------------------------------------------------------------------
    bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame):
    ----------------------------------------------------------------------
    bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame):
    ----------------------------------------------------------------------
    bei System.Windows.Window.ShowHelper(Object booleanBox):
    ----------------------------------------------------------------------
    bei System.Windows.Window.Show():
    ----------------------------------------------------------------------
    bei System.Windows.Window.ShowDialog():
    ----------------------------------------------------------------------

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 09 Mar 2020, 12:40 PM

Hello Mark,

We are not aware of the reported issue. What I would recommend you to test with the latest version of Telerik UI for WPF and see if the issue is still reproducible. If this doesn't help, can you tell me what is the RadDocking setup and what are the steps to reproduce this? Also, would it be possible to isolate this in a runnable project, so I can test it on my side?

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Mark
Top achievements
Rank 1
answered on 10 Mar 2020, 05:47 AM

Hello Martin,

I'm not able to reproduce this error. So I think we can not do much now. We will wait if the error is coming again.

 

Tags
Docking
Asked by
Mark
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Mark
Top achievements
Rank 1
Share this question
or