Deleting objects, freeing memory

Again Me, yes I know 50% of this forum is with my questions :lol:

Again, I have a big problem, about the memory used by my program… I use some SimpleListBox, some arrays, and when I use some functions (for example, if I push a button 20 times), the length of the Windows swap file is increasing of some hundreds of Mb !

I just want to know how can I make my program more “clean”, if I must delete some objects with a specific way, if the problem is from the Dev C++ compilator… Thanks :wink:

don’t go blaming the compiler! If you create an object, you have to delete it, that’s life! This ain’t java!

Stop reading in my spirit please :lol:

Now it’s clear :wink: It’s just the “delete” statement for every local object ?