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

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!
 
D

Doug Harrison [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top