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

Free Heap Memory When Loading Items Into A Listview.

$
0
0

I'm facing a big trouble with listview and items:

I'm loading a big amount of items (Text + Bitmap Image) into a Listview, i'm using an Adapter class which holds the items, and another class where the items are showed.

But when i start scrolling , the heap memory starts to grow and finally (after it reaches about 80mb acording to Xamaring Application Output), the application crashes.

I readed here ( http://stackoverflow.com/questions/13398367/how-to-solve-outofmemory-error-during-listview-scrolling ), that using a OnScrollListener, i can manage to disable the image load while it scrolls, and then load them when stop scrolling, but i can't set the listener the way it's exposed on the link above.

Can anyone please help me with this?

@jonp, @JamesMontemagno, @Cheesebaron


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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