Hello everyone, please forgive me if this is the wrong forum for this post.
I have written a Windows App in C#. It's a real small application (something like a widget) that stays on your desktop and shows pictures of a folder in a random sequence. Before showing another picture i use :
this.BackgroundImage.Dispose(); so that i keep memory usage low. If i won't do that i can see memory rising (depends on the image size).
Now the code i use to change the picture is :
this.BackgroundImage = Image.FromFile(path, true);
So my question is about this last line of code. Is this a good approach of changing the picture after a while? (this code runs in a loop)
Should i care about memory usage? The form is a small one for this kind of app, so loading big and large pictures can have some issues i guess. I have been monitoring my app for some time , memory and cpu usage were really low but i would like to know another
and better approach on this one if somoeone knows.
View Complete Post