FYI Studio/Blend crashing on some XAMLs with Windows 7 Theme

2 posts, 0 answers
  1. Brian Sayatovic
    Brian Sayatovic avatar
    91 posts
    Member since:
    Nov 2009

    Posted 09 Nov 2011 Link to this post

    I have a particular XAML view that is crashing both Visual Studio 2010 and Expression Blend 4 when I open it.  The exception is a StackOverflowException.  It appears to be an infinitely recursive call (see attachment for actual stack screenshot):

    • ...
    • [Native to Managed Transition]
    • [Managed to Native Transition]
    • System.Windows.DependencyObject.ClearValueInternal(...)
    • Telerik.Windows.Controls.StyleManager.OnThemeChanged(...)
    • Telerik.Windows.PropertyMetaData.PropertChangeHook.OnPropertyChanged(...)
    • System.Windows.DependencyObject.RaisePropertyChangeNotifications(...)
    • System.Windows.DependencyObject.UpdateEffectiveValue(...)
    • System.Windows.DependencyObject.InvlaidateProperty(...)
    • MS.Internal.FrameworkCallbacks.InvalidateProperty(...)
    • [Native to Managed Transition]
    • [Managed to Native Transition]
    • MS.Internal.XcpImports.SetValue(...)
    • System.Windows.DependencyObject.SetValue(...)
    • Telerik.Windows.Controls.Theme.Apply(...)
    • Telerik.Windows.Controls.StyleManager.OnThemeChanged(...)
    • Telerik.Windows.PropertyMetaData.PropertChangeHook.OnPropertyChanged(...)
    • System.Windows.DependencyObject.RaisePropertyChangeNotifications(...)
    • System.Windows.DependencyObject.UpdateEffectiveValue(...)
    • System.Windows.DependencyObject.InvlaidateProperty(...)
    • MS.Internal.FrameworkCallbacks.InvalidateProperty(...)
    • ...

    I pruned it down to just a RadTabControl in a UserControl with nothing else.  Having the Windows7 theme present in my project references makes it crash.  If I remove the reference, it works.

    Then I tried a clean-room Blend project with the same thing -- singular RadTabControl with Windows7 theme -- and it did NOT crash.

    So, unfortunately, I can't reproduce this in a clean-room where I can post the example for Telerik to fix.  I'm hoping that someone has also experienced this and knows a solution.  Perhaps this may also give hope to future web searchers looking for people with the same problem.
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    3154 posts

    Posted 14 Nov 2011 Link to this post

    Hi Brian Sayatovic,

     Could you please make sure all telerik assemblies in the application have equal version? Then, if this doesn't help , is it possible for you to capture a video showing how this issue is reproduced since you are not able to provide any code ? This will be highly appreciated and we would be better able to investigate this. Thank you in advance.

    Greetings,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top