For Programmers: Free Programming Magazines  


Home > Archive > Software Testing > September 2005 > A problem on memory check









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author A problem on memory check
eagleeye_l@hotmail.com

2005-09-19, 9:57 pm

Hi, I was trying to track allocations of C programm. I wraps the C
memory functions(malloc, calloc, realloc and free) with my functions
that dump records
of current allocation to a log file. Then I can analyze the programm's
performance and find out whether memory leak.
At most time, It works well, but in a porject, compare with
BoundsChecker, I found it didn't dump all allocations include a
_malloc_dbg (as we know, in debug version of VC++, allocation functinos
ware redirected to DBGHEAP.C's allocation functions).
How can I do it batter ? Whether there is another good method ?

Thanks for your help.:)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com