Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Help with Grow heap (frag case) byte allocation

$
0
0

Im display a 10 images per time with this in a alertdialog

using (var image = MediaStore.Images.Media.GetBitmap(ContentResolver, image1)) {
imagem1.SetImageBitmap (image);
image.Recycle ();
}

but after opening it 6 times it crashes runs out of memory... how can i "clean" that memory like when i close my alertdialog so it dont happen again


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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