Memory

Jun 3, 2009 at 3:16pm
My project use too much memory.

I use _CrtMemCheckpoint( &s2 ); _CrtMemDumpStatistics( &s2 );
to see allocations.
So, on the start function the program used 40500Normal blocks total allocation 370000bytes.On finish - 40505normal blocks, 370100bytes allocation. but when I search in task manager it is about 2 Mb. And on 100 call of function Memory crash.
How program could "eat" memory? not new operations..
Jun 3, 2009 at 3:34pm
Why don't you post the code?
Jun 3, 2009 at 3:39pm
closed account (S6k9GNh0)
SpbJimbo, I can usually translate what people are attempting to say but all I can make out is your somehow getting a memory leak and you found it using CrtMemCheckpoint and CrtMemDumpStatistics. All this means is that you have a couple of allocated pointers that need to be "delete"d. Afterwards your memory should go down...

And what do you mean your Memory crash after you call what function how many times?
Jun 3, 2009 at 3:42pm
And on 100 call of function Memory crash.


What does this mean? This sounds like it's important, yet as far as I can tell this is not a sentence.
Jun 4, 2009 at 10:00am
thanks. it's solved)
Topic archived. No new replies allowed.