Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4133
Out Of Memory With Images In Timeline Control
posted

I am assigning images to appointments in a Timeline control and am receiving "out of memory" errors.  I have 3000 appointments loaded at one time, which is pretty typical for my application.  I am looping through the appointments and loading each image from a filestream.  Everything works for a period of time, but as I scroll through the control, I eventually get an "out of memory" error.  I know it has something to do with the images because when I skip the code that loads the images, I don't get any errors. 

 

Is there a better way to handle these images or do I need to forget about trying to load them?  I am scaling each image down to 16X16, so it's not necessarily the size of the images that's eating up the memory.