.NET Framework Developer Center > .NET Development Forums > Windows Presentation Foundation (WPF) > When loading 3000 images in a Listbox ... out of memory exception
Ask a questionAsk a question
 

AnswerWhen loading 3000 images in a Listbox ... out of memory exception

  • Sunday, November 08, 2009 10:32 AMJoeri P Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I will show over 3000 images in a Listbox ... but after a while I get the out of memory exception. Is it possible to show images on the screen without loading the images in memory ? Because it's unnecesary that the images are loaded in the memory, I only want to show the images.

    Regards

Answers

  • Sunday, November 08, 2009 7:14 PMRay M_ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    showing images without loading them? Although wpf is good it still cannot pull data out of thin air.  What you could do is instead of loading all images completely generate thumbnails which take alot less memory,check out this article on the subject.

All Replies

  • Sunday, November 08, 2009 7:14 PMRay M_ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    showing images without loading them? Although wpf is good it still cannot pull data out of thin air.  What you could do is instead of loading all images completely generate thumbnails which take alot less memory,check out this article on the subject.