This question is locked. New answers and comments are not allowed.
Hi,
One of my users has detected an extrange exception. I don't know exactly how to report it and neither is related with TransitionControl. I'm using a RadTransitionControl to switch between diferent contents. On each content, I have several controls and I'm using ScreenTips in place of regular Tooltips as I prefer them.
Randomly, when user switches between contents, application halts with an InvalidCastException: "Unable to cast object of type 'MS.Internal.ManagedObjectReference' to type 'System.String'.
Using Intellitrace and Visual Studio Debug, I can break the execution whenever an exception occurs, even if it occurs out of my code. Watching Call Stack window on the exception break I can see the following call stack. It seems is related with TransitionControl and/or ScreenTip. Hope someone has experienced this error before or can help me:
> Telerik.Windows.Controls.RibbonView!Telerik.Windows.Controls.ScreenTip.GetTitle(System.Windows.UIElement element) + 0xa0 bytes
Telerik.Windows.Controls.RibbonView!Telerik.Windows.Controls.ScreenTip.UpdateScreenTip(System.Windows.UIElement element) + 0x3b bytes
Telerik.Windows.Controls.RibbonView!Telerik.Windows.Controls.ScreenTip.OnScreentTipInfoChanged(System.Windows.DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e) + 0x7c bytes
Telerik.Windows.Controls!Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(System.Windows.DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e) + 0x98 bytes
System.Windows.dll!System.Windows.DependencyObject.RaisePropertyChangeNotifications(System.Windows.DependencyProperty dp, object oldValue, object newValue) + 0x53 bytes
System.Windows.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.DependencyProperty property, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry, System.Windows.DependencyObject.ValueOperation operation) + 0xf3 bytes
System.Windows.dll!System.Windows.DependencyObject.InvalidateProperty(System.Windows.DependencyProperty property) + 0xd3 bytes
System.Windows.dll!MS.Internal.FrameworkCallbacks.InvalidateProperty(System.IntPtr nativeTarget, uint propertyId) + 0xb1 bytes
[Managed to Native Transition]
System.Windows.dll!MS.Internal.XcpImports.UIElement_Measure(System.Windows.UIElement element, System.Windows.Size availableSize) + 0x43 bytes
System.Windows.dll!System.Windows.UIElement.Measure(System.Windows.Size availableSize) + 0x47 bytes
System.Windows.dll!System.Windows.Controls.ScrollViewer.MeasureOverride(System.Windows.Size constraint) + 0x1bf bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.IntPtr nativeTarget, float inWidth, float inHeight, out float outWidth, out float outHeight) + 0x9e bytes
[Managed to Native Transition]
System.Windows.dll!MS.Internal.XcpImports.FrameworkElement_MeasureOverride(System.Windows.FrameworkElement element, System.Windows.Size availableSize) + 0x62 bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.Windows.Size availableSize) + 0x18 bytes
Telerik.Windows.Controls!Telerik.Windows.Controls.TransitionControl.TransitionPresenter.MeasureOverride(System.Windows.Size availableSize) + 0x63 bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.IntPtr nativeTarget, float inWidth, float inHeight, out float outWidth, out float outHeight) + 0x9e bytes
[Managed to Native Transition]
System.Windows.dll!MS.Internal.XcpImports.UIElement_Measure(System.Windows.UIElement element, System.Windows.Size availableSize) + 0x43 bytes
System.Windows.dll!System.Windows.UIElement.Measure(System.Windows.Size availableSize) + 0x47 bytes
Telerik.Windows.Controls!Telerik.Windows.Controls.TransitionControl.LayoutAnimationPanel.MeasureOverride(System.Windows.Size availableSize) + 0x134 bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.IntPtr nativeTarget, float inWidth, float inHeight, out float outWidth, out float outHeight) + 0x9e bytes
[Managed to Native Transition]
System.Windows.dll!MS.Internal.XcpImports.FrameworkElement_MeasureOverride(System.Windows.FrameworkElement element, System.Windows.Size availableSize) + 0x62 bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.Windows.Size availableSize) + 0x18 bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.IntPtr nativeTarget, float inWidth, float inHeight, out float outWidth, out float outHeight) + 0x9e bytes
One of my users has detected an extrange exception. I don't know exactly how to report it and neither is related with TransitionControl. I'm using a RadTransitionControl to switch between diferent contents. On each content, I have several controls and I'm using ScreenTips in place of regular Tooltips as I prefer them.
Randomly, when user switches between contents, application halts with an InvalidCastException: "Unable to cast object of type 'MS.Internal.ManagedObjectReference' to type 'System.String'.
Using Intellitrace and Visual Studio Debug, I can break the execution whenever an exception occurs, even if it occurs out of my code. Watching Call Stack window on the exception break I can see the following call stack. It seems is related with TransitionControl and/or ScreenTip. Hope someone has experienced this error before or can help me:
> Telerik.Windows.Controls.RibbonView!Telerik.Windows.Controls.ScreenTip.GetTitle(System.Windows.UIElement element) + 0xa0 bytes
Telerik.Windows.Controls.RibbonView!Telerik.Windows.Controls.ScreenTip.UpdateScreenTip(System.Windows.UIElement element) + 0x3b bytes
Telerik.Windows.Controls.RibbonView!Telerik.Windows.Controls.ScreenTip.OnScreentTipInfoChanged(System.Windows.DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e) + 0x7c bytes
Telerik.Windows.Controls!Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(System.Windows.DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e) + 0x98 bytes
System.Windows.dll!System.Windows.DependencyObject.RaisePropertyChangeNotifications(System.Windows.DependencyProperty dp, object oldValue, object newValue) + 0x53 bytes
System.Windows.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.DependencyProperty property, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry, System.Windows.DependencyObject.ValueOperation operation) + 0xf3 bytes
System.Windows.dll!System.Windows.DependencyObject.InvalidateProperty(System.Windows.DependencyProperty property) + 0xd3 bytes
System.Windows.dll!MS.Internal.FrameworkCallbacks.InvalidateProperty(System.IntPtr nativeTarget, uint propertyId) + 0xb1 bytes
[Managed to Native Transition]
System.Windows.dll!MS.Internal.XcpImports.UIElement_Measure(System.Windows.UIElement element, System.Windows.Size availableSize) + 0x43 bytes
System.Windows.dll!System.Windows.UIElement.Measure(System.Windows.Size availableSize) + 0x47 bytes
System.Windows.dll!System.Windows.Controls.ScrollViewer.MeasureOverride(System.Windows.Size constraint) + 0x1bf bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.IntPtr nativeTarget, float inWidth, float inHeight, out float outWidth, out float outHeight) + 0x9e bytes
[Managed to Native Transition]
System.Windows.dll!MS.Internal.XcpImports.FrameworkElement_MeasureOverride(System.Windows.FrameworkElement element, System.Windows.Size availableSize) + 0x62 bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.Windows.Size availableSize) + 0x18 bytes
Telerik.Windows.Controls!Telerik.Windows.Controls.TransitionControl.TransitionPresenter.MeasureOverride(System.Windows.Size availableSize) + 0x63 bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.IntPtr nativeTarget, float inWidth, float inHeight, out float outWidth, out float outHeight) + 0x9e bytes
[Managed to Native Transition]
System.Windows.dll!MS.Internal.XcpImports.UIElement_Measure(System.Windows.UIElement element, System.Windows.Size availableSize) + 0x43 bytes
System.Windows.dll!System.Windows.UIElement.Measure(System.Windows.Size availableSize) + 0x47 bytes
Telerik.Windows.Controls!Telerik.Windows.Controls.TransitionControl.LayoutAnimationPanel.MeasureOverride(System.Windows.Size availableSize) + 0x134 bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.IntPtr nativeTarget, float inWidth, float inHeight, out float outWidth, out float outHeight) + 0x9e bytes
[Managed to Native Transition]
System.Windows.dll!MS.Internal.XcpImports.FrameworkElement_MeasureOverride(System.Windows.FrameworkElement element, System.Windows.Size availableSize) + 0x62 bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.Windows.Size availableSize) + 0x18 bytes
System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.IntPtr nativeTarget, float inWidth, float inHeight, out float outWidth, out float outHeight) + 0x9e bytes