I have a listbox in which I load images dynamically from the web as user scrolls. Consider it an infinite scroll. My current display size is 72X72. But if I increase the display size to 288x288 (4 times) after few minutes of scrolling the app exits giving a outofmemory system error. It has started to occur very often on my 512MB device for large images. This concerns me because it will occur more quickly for 256 MB devices. How to handle such situation as try catch do not handle these system errors? What is the most optimum way of handling such a huge list of images?
I have a listbox in which I load images dynamically from the web as
Share
I have also gone through this damm issue of WP7 or WP7.5.
There is a huge issue with Images in Windows phone 7.
A image of appox size 900kb when read from Isolated storage as stream and set as a source of Bitmap class object than u will see there is huge change/rise in memory usage (in my case 5-6MB).
Just go through this website and u will understand the rest.
Silverlight-s-big-image-problem-and-what-you-can-do-about-it
For long image listing issue
1. Scale down the images u get from the server.
2. Use LongListSelector tool to list images using data virtualization technique