Windows Phone 8 Memory Performance RRS feed

  • Question

  • This is graph of my memory usage. I loaded Page1, then i navigated to Page2, then back to Page1. And again from Page1 to Page3 and etc. Why app collects all pages in memory? And how to solve this? I don't need in Page2, 3 and 4 when i returned to Page1. I have a lot of data on each page, how to increase performance of memory usage?

    Thursday, February 13, 2014 8:40 PM

All replies

  • Have you tried removing the page after you load a new one?


    It will remove from the stack but keep in mind when you hit the back button it will not go back to the page you were at before, but rather the one before that (which might close your app).

    Thursday, February 13, 2014 8:58 PM
  • Do the page destructors fire?


    Thursday, February 13, 2014 11:11 PM
  • Page destructor fired but not at the moment when you leave the page. For example look at the picture. When i back to the Page1 from Page4, Page2 destructor fires.

    May be i havе to unsubscribe ALL events in OnNavigatedFrom (or where)? 

    Friday, February 14, 2014 5:07 AM
  • It's .net you can't read too much into when the destructor fires. But knowing the destructor will fire means you haven't got rogue refs. What happens if you don't load any images?


    Friday, February 14, 2014 6:50 PM