0

I'm stuck with the issue: I use Xamarin Profiler for identifying memory leaks. When I push new page to Navigation, then memory usage increases, but when I pop it from Navigation, the usage is still the same. And the useage increases if I do pushing and popping for the same page for 20 and more times..

How to solve that sort of problem? Thanks in advance.

  • 1
    Do check you don't have any event which you didn't; unsubscribe to. don't use lamdas, all relationship should be assigned null before leaving the page – Saket Kumar Sep 11 '18 at 07:12
  • I recommend you to see this thread: https://stackoverflow.com/questions/37465850/how-to-refresh-the-one-but-last-contentpage-on-the-navigation – Tiago dias Sep 12 '18 at 09:34

1 Answers1

0

When I push new page to Navigation, then memory usage increases, but when I pop it from Navigation, the usage is still the same.

It did increasing all time, but I think it's not compared with the previous snapshot, it was compared with a baseline, that's why it always positive. You could try compare these Size Growth value with snapshot 1's value , as illustrated in the following diagram:

enter image description here

Some other useful link:

York Shen
  • 9,014
  • 1
  • 16
  • 40