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

How to free memory from unused images?

$
0
0

Hey,

My app is crashing very soon on a actual device because of insufficient memory space.
I use many images in my app so I guess these are my problem. I have 2 different imageviews with the in use with the ImageSource bound to another class. Changing the image works perfectly but it seems like the previous image is still in the memory.
Between changing the imagesource the visabillity is set to false and true dependend on which of the views I need. Is that an problem?
Also it seems like I can't set the imagesource to null via data binding?

Can I somehow free the memory space used by an image in my code?


Viewing all articles
Browse latest Browse all 58056

Trending Articles