I have a xamarin forms application built using tabbed pages, that contain content pages that contain carousel pages that contain more content pages.
I'm doing all the layouts using xaml and each page uses quite a few images.
My application is crashing due to memory issues. all my images are loaded via UriImageSource which i think has caching enabled by default.
It looks like the data for each tab page is kept in memory even when its not in use which may be causing the issue as each tab page has multiple carousel pages with multiple content pages inside them.
I've tried calling the garbage collection but that doesnt help. What is the best way to design my application to not hold onto all child pages and run out of memory when using forms?
Also how can i catch the DidReceiveMemoryWarning in xamarin forms and how can i see how much memory is currently being used?