Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Navigation.PopAsync not freeing Page

$
0
0

I'm having a problem in a project where pages I pop from my Navigation controller aren't freed or collected by the GC on iOS. I eventually run out of memory and crash. I figured I had reference cycles blocking but I couldn't come up with any solution.

I've put together a small project allowing you to push and pop pages from the Navigation stack. If you take a look at HeapShot or Instruments you'll see the objects just keep adding up - nothing is released.

Am I doing something wrong or is this a bug?

Tested against the latest Xamarin.Forms library, and with SGen and the reference counting extension enabled.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>