Memory usage increase continously when showing local photos RRS feed

  • Question

  • I want to show local photos in my app and found the sample: 'StorageDataSource and GetVirtualizedFilesVector sample'.

    I use bulk api to search for photos in local library and then create a WinJS.UI.StorageDataSource using the result. Finally I bind the data source to a ListView.

    But I found that when my app run for a long time, display local photos in different folders for many times, the memory usage increased a lot and finally my app can't response any more.

    I also tested the 'StorageDataSource and GetVirtualizedFilesVector sample', and if I show photos list view for many times, the memory usage also increased a lot. Below is the screen shot of the result of Performance Monitor.

    How can I reduce the memory usage, it seems when we use createObjectUrl to show local photos(even it's thumbnail), the memory will not be release.

    Tuesday, October 23, 2012 11:55 AM

All replies

  • Have you tried setting the image src attribute to null?

    Jeff Sanders (MSFT)

    Wednesday, October 24, 2012 1:02 PM
  • Just navigate from the photo list view page.

    Where can I set src to null? Before navigation and go through the list view manually?

    Friday, October 26, 2012 7:21 AM