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

RibbonView.ShowTips() causing error

3 Answers 147 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Datafyer
Top achievements
Rank 1
Veteran
Datafyer asked on 02 Feb 2017, 07:03 PM

I setup keytips a long time ago for the application however now out of the blue things are failing with the following error:

My version is 2016.3.914.45.

 

2017-02-02 10:54:17.6159|ERROR|20716|1|Telerik.Windows.Controls.RibbonView.KeyTipService.ShowTips|Unhandled exception|System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.RibbonView.KeyTipService.ShowTips()
   at Telerik.Windows.Controls.RibbonView.KeyTipService.ActivateKeyTips(KeyEventArgs args, Boolean hasTips)
   at Telerik.Windows.Controls.RibbonView.KeyTipService.HandleKey(KeyEventArgs args)
   at Telerik.Windows.Controls.RibbonView.KeyTipService.RibbonKeyUp(Object sender, KeyEventArgs e)
   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.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   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 System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)
   at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at MyApp.App.Main()

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 07 Feb 2017, 10:48 AM
Hi Patrick,

There are few known issues related to the RadRibbonView's KeyTipService that looks like the described error. They were fixed few months back, so I would ask you to try the latest version of UI for WPF and see if the error still occurs.

Regards,
Martin
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Larry
Top achievements
Rank 1
answered on 29 Mar 2017, 05:01 PM
I'm having the identical problem with version 2017.1.117.45. It occurs randomly and only seems to happen when using Remote Desktop to a screen that already has the UI displayed. We have not seen it happen when starting our app. I cannot reproduce the error, but it still happens occasionally.
0
Martin Ivanov
Telerik team
answered on 03 Apr 2017, 10:53 AM
Hi Larry,

Can you prepare an isolated project demonstrating how you use the ribbonview control and send it over? This way I can test it locally and try to reproduce the issue with a remote desktop. Also, can you try to shoot a video that shows the issue if possible?

Also, can you try our latest version (2017.1.222) and see if the issue still occurs.

Note that the forum allows you to attach only image. However, you  can open a new support ticket from your telerik.com account and attach .zip files.

Regards,
Martin
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RibbonView and RibbonWindow
Asked by
Datafyer
Top achievements
Rank 1
Veteran
Answers by
Martin Ivanov
Telerik team
Larry
Top achievements
Rank 1
Share this question
or