Posted 15 years ago
by Craig
-
Varigence, Inc.
Version: 9.1.0505
Platform: .NET 3.5
Environment: Windows 7 (32-bit)
So, I've reproed this on two different machines. One is my Windows 7 box, when using the Windows Classic theme. The other is on a Windows Server 2008 box, also using Windows Classic.
The exception:
System.Windows.Markup.XamlParseException: System.Windows.Markup.XamlParseException: Cannot access Freezable 'System.Windows.Media.LinearGradientBrush' across threads because it cannot be frozen. Error at object 'TitleBar' in markup file 'ActiproSoftware.Ribbon.Wpf30;v9.1.505.0;component/Themes/Ribbon/Common/RibbonWindow.xaml'. ---> System.InvalidOperationException: Cannot access Freezable 'System.Windows.Media.LinearGradientBrush' across threads because it cannot be frozen..
Repro:
The repro story is that I have a RibbonWindow in a WPF application. For testing, I'm creating and closing the window multiple times. For the first test, creating and closing the window works properly. For the second test, however, creation fails with the above exception, BUT ONLY when I use the Windows Classic theme.
I've created a sample project which I'll send you. The steps are simply to build the project and run all tests from within Visual Studio. The first test will pass and the second test should fail (when using the Windows classic theme).
Thanks,
-Craig
P.S. - I've emailed the sample to Support@ActiproSoftware.com; please let me know if it needs to go elsewhere.
[Modified at 09/14/2009 07:57 PM]
The exception:
System.Windows.Markup.XamlParseException: System.Windows.Markup.XamlParseException: Cannot access Freezable 'System.Windows.Media.LinearGradientBrush' across threads because it cannot be frozen. Error at object 'TitleBar' in markup file 'ActiproSoftware.Ribbon.Wpf30;v9.1.505.0;component/Themes/Ribbon/Common/RibbonWindow.xaml'. ---> System.InvalidOperationException: Cannot access Freezable 'System.Windows.Media.LinearGradientBrush' across threads because it cannot be frozen..
Repro:
The repro story is that I have a RibbonWindow in a WPF application. For testing, I'm creating and closing the window multiple times. For the first test, creating and closing the window works properly. For the second test, however, creation fails with the above exception, BUT ONLY when I use the Windows Classic theme.
I've created a sample project which I'll send you. The steps are simply to build the project and run all tests from within Visual Studio. The first test will pass and the second test should fail (when using the Windows classic theme).
Thanks,
-Craig
P.S. - I've emailed the sample to Support@ActiproSoftware.com; please let me know if it needs to go elsewhere.
[Modified at 09/14/2009 07:57 PM]