Detect memory leak in othe dll with full calll stack

Jul 26, 2012 at 12:55 PM

Hi,

I have a VS C++ app that is lineked dynamically to other dll. I want to detect if there are memory leaks in my app or not. I have added "#include vld.h" in one of dll files - and the vld detected successfully leaks. My problem is that the call stack is incompleted, and doesnt give me the full stack - doesany one know why?

thanks.

 

Jul 28, 2012 at 2:22 PM
Edited Jul 28, 2012 at 2:53 PM
RachelM wrote:

Hi,

I have a VS C++ app that is lineked dynamically to other dll. I want to detect if there are memory leaks in my app or not. I have added "#include vld.h" in one of dll files - and the vld detected successfully leaks. My problem is that the call stack is incompleted, and doesnt give me the full stack - doesany one know why?

thanks.

 

I have no problem with that , i have full stack even in DLLs that didn't compile with "vld.h" or even are not coded by me !

What building configuration are you using? Debug or Release and also Are you including debug information in your app?

Can you post your VLD result report that is not contain full stack and also vld.inf?

Jul 30, 2012 at 7:25 AM

I am using Debug mode. can you please explain what do you mean in the words "Are you including debug information in your app"? what is debug information?

Jul 31, 2012 at 5:55 AM
RachelM wrote:

I am using Debug mode. can you please explain what do you mean in the words "Are you including debug information in your app"? what is debug information?

Debug information is an optional linker option in compiler.

If you maye it "on"  then the compiler will generate a pdb file for you when you build which contains the symbols for your application and can be used by the Visual Studio debugger and external debuggers to find where something went wrong easily. 
For more info, please see following links:

http://msdn.microsoft.com/en-us/library/xe4t6fc1(v=vs.80).aspx

http://www.debuginfo.com/articles/gendebuginfo.html

http://msdn.microsoft.com/en-us/library/xe4t6fc1.aspx