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

GC not configured properly in XForms !

$
0
0

Hi All,

Yesterday I was working on an XForms app which contains various high res. images.
All set & I deployed the app to my Device. But the app crashed showing me Out Of Memory error in Application Output window.
After some digging I found out, it's due to the heavy images I'm using. Spent some time to figure out a solution for this & got this message that in XForms currently there is no provision of handling the memory claimed by images.

Today to my curiosity I used "GC.Collect()" in the constructor of my page & it worked without any crash :)
Now I feel like the XForms compiler isn't configured properly to handle Garbage Collector. If this is true I'd like to Report this as a Bug.

Note : There is no BitMapFactory class available in XForms. No scaling of images possible. No image Recycle/Dispose option available as well. Need fix for this.

Regards,
Dash


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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