dejota6
06-08-2004, 03:33 PM
I've got a small application that is supposed to simply be a slide show program. I have folder of .jpg's that are going to be displayed. Simple...
The problem I'm having is that the Picture Box, when it changes pictures, is not releasing the memory completely. and after only a few loops through all the pictures, there is a significant rise in memory usage.
the way i'm doing it (in a nutshell), is i have a picture box and a timer. on the timer event (every 5 seconds), i change the picBox1.Image property.
Is there something else I need to do, to cause the memory to remain "constant" over the life of the application. The reason for the concern, is this program will be running for very long periods of time. Possibly weeks at a time, and if the memory would continue to rise...well, that's not good.
Any help would be great, If i need to post code, or anything, please let me know.....
The problem I'm having is that the Picture Box, when it changes pictures, is not releasing the memory completely. and after only a few loops through all the pictures, there is a significant rise in memory usage.
the way i'm doing it (in a nutshell), is i have a picture box and a timer. on the timer event (every 5 seconds), i change the picBox1.Image property.
Is there something else I need to do, to cause the memory to remain "constant" over the life of the application. The reason for the concern, is this program will be running for very long periods of time. Possibly weeks at a time, and if the memory would continue to rise...well, that's not good.
Any help would be great, If i need to post code, or anything, please let me know.....