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

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

1 Answer 12 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brian Sayatovic
Top achievements
Rank 1
Brian Sayatovic asked on 09 Nov 2011, 03:49 PM
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.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 14 Nov 2011, 12:36 PM
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 >>

Tags
General Discussions
Asked by
Brian Sayatovic
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or