Sign in to follow this  

Mem usage increasing with changes to window

This topic is 4611 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok im working with SDL and when i first compile the program (using Dev-Cpp IDE (GCC)) It is at about 3464 KB's at first then when i minimize it it lvls out at 460 KB's but then when i expand it again 1568 KB's wich is like half the size of the origonal, in fact even with the default template for Dev, i notice various memory fluctuations in Windows Task Manager if anyone knows why i would like to know, thanks =)

Share this post


Link to post
Share on other sites
I believe that minimising an app may tell Windows that it is a good time to reclaim unused memory. I wouldn't worry about it if I were you.

Share this post


Link to post
Share on other sites
its more then that though, when i first bring up the window it has its base size then when i switch to a diffrent window (not minimize just switch) then go back the size increases by 4kb then if i wait like 5 min and do it again it increases again, this could rack up alot of memory, i know stuff like this seem nit picky but i just want clarification so that when debugging my program i dont tag these flucuations as memory leaks

Share this post


Link to post
Share on other sites
It may be worth using some sort of memory manager to track your application's memory. You can't really use the operating system to do that because you have no control over when it reclaims freed memory.

Share this post


Link to post
Share on other sites
Sign in to follow this