Hi,
I updated my references to the new Q1 2013 (SP1) and now there is a memory leak. I thought there should some problem with my code. But first, I removed all the new references and referenced with Q3 2012 ones. There is no memory leak. I am surprised as to what changed and why this is happening.
Please refer to the attached snapshots of the libraries used and Memory leak using JustTrace. The Blue object seems to hold on to the reference. It is a static property and is referred by a property in viewmodel. The viewmodel should be collected when the view goes away but in this case, it isn't collected when the view changes. When the view is back in place, another instance of the viewmodel is created, hence the leak.
The static property in question is of a type "OverviewViewModel". It contains a ObservableCollection property "Subregions" that is bound to a List box. The view also has a Master-Detail format with the SelectedItem's properties bound to other controls.
The problem is that this wasn't an issue with Q3 2012 Release.
If I swap back the Q3 2012 version. It all works great.
Any help is highly appreciated.
I updated my references to the new Q1 2013 (SP1) and now there is a memory leak. I thought there should some problem with my code. But first, I removed all the new references and referenced with Q3 2012 ones. There is no memory leak. I am surprised as to what changed and why this is happening.
Please refer to the attached snapshots of the libraries used and Memory leak using JustTrace. The Blue object seems to hold on to the reference. It is a static property and is referred by a property in viewmodel. The viewmodel should be collected when the view goes away but in this case, it isn't collected when the view changes. When the view is back in place, another instance of the viewmodel is created, hence the leak.
The static property in question is of a type "OverviewViewModel". It contains a ObservableCollection property "Subregions" that is bound to a List box. The view also has a Master-Detail format with the SelectedItem's properties bound to other controls.
The problem is that this wasn't an issue with Q3 2012 Release.
If I swap back the Q3 2012 version. It all works great.
Any help is highly appreciated.