In a WPF application, I have UserControls which contain XamDataGrids. I fill the grid DataSources with a List<T> of objects. The UserControls loads ok. The problem comes when the UserControl is closed/disposed. The list and the objects loaded onto the grid are NEVER released from memory. Tracking them, they are held by:
Infragistics.Windows.DataPresenter.XamDataGrid (1 instance) -> System.Windows.ResourceDictionary (1 instance) -> System.Collections.Generic.List<Windows.FrameworkElement> (1 instance) -> System.Windows.FrameworkElement[] (1 instance) -> Infragistics.Windows.DataPresenter.XamDataGrid (1 instance) -> System.Windows.EffectiveValueEntry[] (1 instance) -> List<T> (1 instance) (this is my list of objects)
Please, could anybody tell me if there is patch, a rollback or something to avoid this situation?
Thanks.
Hello,
I have been looking into your requirement and if it is possible for you, could you please send me an isolated sample project, where this issue is reproduced and steps that I need to follow to reproduce it, so I can investigate this further for you.
Looking forward for your reply.
Hi Stefan,Of course, here you are. This project will continuosly leak. It is a grid with a continous refresh every second, after 30 seconds, the garbage collector is called.
The grid has some images and some styles.
I have been looking into your sample and I noticed that you are using version 10.1 and since we are no longer provide fixes for this version I was wondering if you could please send me a more detailed information of the memory usage and memory leaks, if they still persist in 11.2, so I can investigate your issue further for you.
I have no license for the 11.2 version.
If this is your solution it is simply poor, very poor.
I have tried your sample both on XP and Win 7 using the RTM and latest service releases of both versions 10.1 and 11.2 and I still wasn’t able to detect any memory leaks. I can say that we provide a trial version of 11.2, which you can download from our website and try it. Also I tested your sample with ANTS memory profiler and I attached screenshots with and without calling the garbage collector and there weren’t any memory issues on my side. If it is possible for you could you please use a memory profiler and confirm that there are memory leaks and send me the information from the tool, so I can investigate this further for you.