I currently have a list view that has about 30-40 images in it. They are loaded from a byte[] as such
ImageSource.FromStream(() => new MemoryStream(Model.ImageSource));
The page loads fine, then if I scroll up and down it about 5-7 times it eventually crashes with an OutOfMemory exception.
Is there a way around this and why does WinPhone keep allocating memory while scrolling up and down a list that is already loaded. I assume it has something to do with the images going out of view and then disposed and scheduled for GC, then I bring them back into view and just add more images to memory while the previous ones haven't disposed yet. (thats just my speculation)