473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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!
Oct 24 '06 #1
1 2703
On Tue, 24 Oct 2006 10:43:41 -0400, "Stephen Walch" <sw****@online.nospam>
wrote:
>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.

--
Doug Harrison
Visual C++ MVP
Oct 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Bailo | last post by:
It's bad enough that M$ pays trolls to post in linux newsgroups. But today, I received a troll email on the mono-develop email list. Mono-develop !?!?! Do they have that many drones and...
2
by: Peter Strøiman | last post by:
Hi. I have a project that leaks :( I tried using the _crtDumpMemoryLeaks function, and I get the memory leaks written to the output window, but it doesn't show the correct source file. Instead...
0
by: Shamil Salakhetdinov | last post by:
Hi All, Have anybody seen somewhere techniques like the one described here: Automating Windows Applications http://www.thecodeproject.com/com/automatingwindowsapps.asp but for managed...
1
by: noleander | last post by:
Hi. I've got a C++ program written in Visual C++ 2003. The program is trivial, created with the Program-creation wizard: used the .NET "Form" template. The program has a trivial...
3
by: JoeProgrammer | last post by:
A couple of questions re. managed vs. unmanaged code. 1. I know this depends on the app, but how much faster is unmanaged code vs. managed code? Is there an average figure for this? 2. Is it as...
2
by: Brandon | last post by:
I created a setup project in VS.NET 2k5 and added an additional dialog to ask the user where they would like to place icons for my application. The options are Desktop and QuickLaunch Menu. When...
6
by: nicolas.hilaire | last post by:
Hi all, i'm not totally clear with some concepts about managed and unmanaged code. I'm asking myself some questions : - i've a MFC app, i want to use the framework dotnet by switching to...
8
by: Edward Diener | last post by:
By reuse, I mean a function in an assembly which is called in another assembly. By a mixed-mode function I mean a function whose signature has one or more CLR types and one or more non-CLR...
23
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to WinForms, in the sense that all the library routines I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.