Quote:Original post by andurQuote:Original post by waZim
Niiiiiiiiice,,
it works..
_CrtMemCheckpoint this was misspelled in your code. :)
..
waZim
Glad it works :) The debugger should really have something like this built into it. This won't catch everything though, I don't think it will catch any static variables that initialize stuff on the heap.
Yeah, sorry about that typo in typing it in here.
You can also call _CrtSetAllocHook and pass it a function that gets called whenever memory is allocated/freed/reallocated. MSDN explains pretty well how it works.
Thanks for the reply again.
about _CrtSetAllocHook, the following link has a tutorial of how to use all this memory management system from CRT. and explains alot regarding taking the momory snapshots etc..
http://www.codeproject.com/KB/cpp/MLFDef.aspx?fid=185354&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=1121151
What i don't understand and am still searching around is how can i use that information to track the file name and line number out of it where the memory was allocated and was not deleted?
how can i decode this information
Detected memory leaks!
Dumping objects ->
{142} normal block at 0x00367210, 200 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
{141} normal block at 0x00367108, 200 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
One other thing which i didn't understand is when you say "if you program is Determinstic?" what does that exactly mean?
thanks in advance.