tool/utility that converts the address into source code line - for memory leak

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Barkha Shah

    tool/utility that converts the address into source code line - for memory leak

    Hi All,
    I am looking for a tool/utility that converts the address into source code
    line.

    Purpose is that I have written a basic mfc application that purposely has a
    memory leak.Now at the exit of the application I get a memory dump in the
    output window as mentioned below. Its a simple program that I know where the
    memory leak is but in the bigger application I am not able to figure out
    source code line. Any help on this respect would be immensely appreciated.
    Thanks and Regards
    barkha shah
    Detected memory leaks!

    Dumping objects ->

    {77} normal block at 0x003225A8, 25 bytes long.

    Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD

    Object dump complete.





    Code Snippet:
    char *a = (char*)malloc(2 5);




  • Bart Jacobs

    #2
    Re: tool/utility that converts the address into source code line- for memory leak

    Microsoft provides the Debug Help library. This library provides the
    SymGetLineFromA ddr64 function
    <http://msdn.microsoft. com/library/en-us/debug/base/symgetlinefroma ddr64.asp>.

    Comment

    Working...