WP7 memory issue

Sep 25, 2010 at 2:55 AM

Hi, 

I am experiencing a memory issue when navigating between pages on a WP7 app. 

In the bootstrapper i'm registering all the VMs as singletons, and my VMs are inheriting from the base Screen class. I don't need any views cached so i override AttachView and don't call up to the base (i read somewhere this was the recommendation). 

However, my app is increasing 0.9MB RAM every time i navigate, and i'm not sure what is causing this increase, i can only assume CM is holding on to something. Essentially, I want the VM to be singleton and the views to be instantiated OnNavigatedTo and killed OnNavigatedFrom, do I need to do anything special to enable this behavior?


keith

Coordinator
Sep 25, 2010 at 10:54 AM

.9MB is a lot. What are you using to determine this number? Is there any way you can create a small sample application that demonstrates the problem? and confirm that it exists in the latest source? If so, would you send that to me. You can send it to robertheisenberg at hotmail dot com