Using the .NET Memory Profiler from http://memprofiler.com/ I am finding any xamchart I create is never garbage collected. I am even seeing the same behavior in the XamFeatureBrowser. CarouselPanels get reclaimed by the garbage collector but XamCharts never do. In my application it appears that the ThemeManger q and b instances are static and hold references to the charts? Am I supposed to call Dispose some where? Any help would be appreciated.
The output below is from the .NET Memory Profiler
Reference 1__________________System.Windows FrameworkElement[ 0000114,870[3]System.Collections.Generic List<FrameworkElement> 0000084,690._itemsSystem.Windows ResourceDictionary 0000076,180._ownerFEsSystem.Collections.Generic Dictionary<ResourceDictionary, ResourceDictionary>.Entry[ 0000061,616[0].valueSystem.Collections.Generic Dictionary<ResourceDictionary, ResourceDictionary> 0000061,618.entriesInfragistics.Windows.Themes ThemeManager qReference 2___________________System.Windows FrameworkElement[ 0000114,870[3]System.Collections.Generic List<FrameworkElement> 0000084,690._itemsSystem.Windows ResourceDictionary 0000076,180._ownerFEsInfragistics.Windows.Chart XamChart 0000001,627.nSystem.Windows.Media LinearGradientBrush 0000078,714._contextStorageSystem.Collections Hashtable.bucket[ 0000078,678System.Collections Hashtable 0000078,578.bucketsSystem.Windows ResourceDictionary 0000078,583._baseDictionarySystem.Windows ResourceDictionary[ 0000078,577[0]System.Collections.Generic List<ResourceDictionary> 0000078,574._itemsSystem.Collections.ObjectModel ObservableCollection<ResourceDictionary> 0000078,237.itemsSystem.Windows ResourceDictionary 0000078,228._mergedDictionaries bu 0000078,229.b bu aReference 3_________________System.Windows FrameworkElement[ 0000114,870[3]System.Collections.Generic List<FrameworkElement> 0000084,690._itemsSystem.Windows ResourceDictionary 0000076,180._ownerFEsInfragistics.Windows.Chart XamChart 0000001,627.nSystem.Windows.Media LinearGradientBrush 0000078,714._contextStorageSystem.Collections Hashtable.bucket[ 0000078,678System.Collections Hashtable 0000078,578.bucketsSystem.Windows ResourceDictionary 0000078,583._baseDictionarySystem.Windows ResourceDictionary[ 0000078,577[0]System.Collections.Generic List<ResourceDictionary> 0000078,574._itemsSystem.Collections.ObjectModel ObservableCollection<ResourceDictionary> 0000078,237.itemsSystem.Windows ResourceDictionary 0000078,228._mergedDictionariesSystem.Windows ResourceDictionary[ 0000078,882[0]Infragistics.Windows.Themes ThemeManager.a 0000078,883.valuesInfragistics.Windows.Themes ThemeManager.a[ 0000061,597[4]System.Collections.Generic SortedList<string, ThemeManager.a> 0000061,600.valuesInfragistics.Windows.Themes ThemeManager b
This appears to be addressed WPF 2008 Vol. 1, so I am all set. Wierd thing is I did reprocuce right after I updated, but then after reboot it went away. The new Feature Browser also does NOT have the problem.
yes, this is fixed in the 8.1 release and will be fixed in the next 7.2 hotfix.