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

Memory Leak in TabbedPage + NavigationPage

$
0
0

Hi,

In iOS, when the Tab Icon on a TabbedPage is pushed and the current page is not root, then the navigation stack is popped too root, but the pages on the stack -which should be popped- are not properly released.

When using the back button (popping the pages one by one) they are properly released and are removed from the stack.

With the code below you can inspect the contents of the navigation stack.

When using the Tab Icon, the stack keeps incrementing and the "popped" pages stay on there.

Is anyone else seeing this behaviour?

I think this is a memory leak. Visually, everything looks fine, but the popped pages stay in memory.

// TODO memory leak -> when tab icon is pushed when not root, the current page is not released

foreach (var item in this.Navigation.NavigationStack)
{
Console.WriteLine ("Items =====> {0}", item);
}

Regards

Gerd


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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