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

Bitmap loaded in memory multiple times

$
0
0

I'm having an custom renderer for Image control. Here's behaviour that i have noticed:
If i set up breakpoint protected override void OnElementChanged(ElementChangedEventArgs e), each time before debbuger stops i'm getting message in console 11-10 13:51:25.358 D/skia (19471): GFXPNG PNG bitmap created width:192 height:192 bitmap id is 216. With different ID each time, of course.
I have noticed that OnElementChanged is called for same Image (checked e.NewElement filename) 9 times, which leads to conclusion (as there's alway skia message in output window) that bitmap is stored in memory 9 times instead of 1. After loading 6 images in 3 different list view cells, I'm getting out of memory exception.

Any suggestions, as this is real showstopper for my app


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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