I'm working on a project that have many buttons with pictures, pictures box's and design content in general.
Everything is fine, no memory leaks and optimization is going well.
I've already optimized most images, with icon-res only, most of them are 32x32 or 64x64, they take no memory at all.
The thing is, i'm having a issue with unmanaged memory used by GDIplus, where it takes 90-100 mbs of the memory being used by the program, while the program itself takes 23-25 mbs.
I searched alot, i know that GC don't collect those very often, i need to dispose them. The thing is, i'm loading the images from "proprieties" inside visual studio, not from code. I can't dispose them(at least i dont know how).
After a while (40 min-2 hours) the GC will collect them, and the app still work perfectly, using only 23 mbs of ram.
How can i manage those 90 mbs?
why GC collects after a while and the Memory usage goes to 23 mbs?
I'll leave a snapshot of ANTS.
If anyone finds any memory related problems within this snapshot, please, feel free to comment and point out. I'm very early on computer science, literally 3 months of experience, there's alot to learn.
pardon my english, not my main tongue.