1
Vote

ViewModels not being thrown away

description

Hey i cant find a good place to post this, so ill try here first.
Im having a problem with my ViewModels never being GC'ed until the app is shutdown. This is a major issue! Can you pros lend some ideas as to exactly what could be the cause of them never being released? Im using a tabbed style app, where you can open as many Entity tabitems(viewmodels) as you want, and then close them when youre done. The examples Ive seen from disciples they always limit the number of open VMs at once...am I missing something, doing something wrong? Im using Joshs/Marlons Mediator to send out messages, with a static Mediator singleton in my base viewmodel...could that be a culprit?
 
Thanks!
Justin

comments

JoshSmithOnWpf wrote Oct 14, 2009 at 6:27 PM

It could be any number of things in the app. If you can create a simple demo application that consistently causes a memory leak due to one of the classes in MVVM Foundation, please send it to me and I will investigate. Otherwise, it's impossible for me to even start providing suggestions on how to plug the memory leak in your app.

Josh

wrote Feb 21, 2013 at 11:05 PM