Can't see _CrtDumpMemoryLeaks output when using managed C++ from Winforms app

  • Thread starter Thread starter Stephen Walch
  • Start date Start date
S

Stephen Walch

I have a managed C++ assembly that wraps several unmanaged libraries. I
excercise this assembly by calling it from a C# WinForms app running in the
Visual Studio.NET 2003 dubugger. At a certain point in processing call
_CrtDumpMemoryLeaks() to look for possible memory leaks in the unmanaged
code. The function appears to execute, but I do not see the usual memory
disgnostic information in the VS2003 output window. What is going on here?
Where is the output going in this scenario? Thanks!
 
I have a managed C++ assembly that wraps several unmanaged libraries. I
excercise this assembly by calling it from a C# WinForms app running in the
Visual Studio.NET 2003 dubugger. At a certain point in processing call
_CrtDumpMemoryLeaks() to look for possible memory leaks in the unmanaged
code. The function appears to execute, but I do not see the usual memory
disgnostic information in the VS2003 output window. What is going on here?
Where is the output going in this scenario? Thanks!

You may need to specify the output destination using _CrtSetReportMode, and
you may need to activate leak tracking with _CrtSetDbgFlag first.
 
Back
Top