Hi all,
In my project I have a carousel page with 3 children (Carousel 1,2,3).
I noticed that when I change page (go to another page different from the carousel page) the memory is not freed.
Usually in my pages i have this method to help the app to free memory:
`
protected override void OnDisappearing()
{
base.OnDisappearing();
MemoryManagement.clearImage(myImage);
}
`
In carousel 1,2,3 this method is not called, so I use MessagingCenter.Send/Subscribe to inform the Carousel pages.
In this case, the call OnDisappearing but the memory is not freed.
The strange thing is that the memory is freed as soon I return to the Carousel page (and of course I don't see images anymore, but it is normal).
I expect that the memory is freed as soon i call the OnDisappearing method (I don't have anymore these pages inside my navigation), instead I have to show the pages again to free the memory. This behavior is really really strange.
I think it is a bug, otherwise, someone can explain me this behavior and how can I solve this problem?