Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6794675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:15:02+00:00 2026-05-26T18:15:02+00:00

I have a Visual Studio 2010 solution that contains C# (managed), C++/CLI (unmanaged) and

  • 0

I have a Visual Studio 2010 solution that contains C# (managed), C++/CLI (unmanaged) and pure C++ (native) projects. I would like to perform memory leak detection across all 3 projects or at least around the native code:

  • The C# project references the unmanaged dll (I have access commonly available .NET Memory Profiling tools, so it’s not really a problem to run memory profiling on it).
  • The C++/CLI is a very thin wrapper around the native C++ library, so I don’t really need to profile it (not that worried about it).
  • The C++ native code is the one that’s the most difficult to profile.

I’ve tried using Intel Inspector XE 2011, but it’s simply too slow… doing a simple thing like merely initializing my system and takes so long that I haven’t even seen it complete yet. When I run my system without IXE 2011, it takes me no more than 10-15 seconds to initialize my system, while with IXE we’ve let it run for hours and it doesn’t get past initialization. I’ve attempted to exclude certain libraries from being profiled, but it had absolutely no effect.

I’ve tried using the Visual Leak Detector, but after completing the run it said that it couldn’t find any memory leaks. I was suspicious about that result so I intentionally placed a piece of code in a frequently run function to ensure that there is a memory leak:

int* memoryLeak = new int;

I ran with VLD again, but it spit out the same message. I’m considering overriding the new/delete operators or even just the malloc/free, but I wanted to make sure that I’ve exhausted all other options before I delve into doing that.

What can I do to profile the memory usage of my native C++ library with Visual Studio 2010? Are there any other tools or techniques that might work (even if they don’t integrate with VS2010)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:15:03+00:00Added an answer on May 26, 2026 at 6:15 pm

    In .NET even if you use managed objects there may be something that never get disposed (check some examples here: Memory Leak in C#).

    About the native part, you may use two different approaches:

    • use a different memory profiler software, many listed here: Is there a good Valgrind substitute for Windows?

    • change your sources to use debug malloc/new and to print where in the code the allocations are done: http://www.flipcode.com/archives/Detecting_Memory_Leaks.shtml

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Visual Studio 2010 solution that contains several C# projects in accordance
We have a Visual Studio 2010 solution that contains several C# projects in accordance
I have a Visual Studio 2010 solution that contains 3 projects: a dll project,
I am using Visual Studio 2010 ultimate and have a solution that contains a
I have a Visual Studio 2010 solution that contains a WCF service project. When
I have a solution in Visual Studio 2010 which contains multiple projects. All of
I have a Visual Studio 2010 .NET 4 solution with C# projects and a
I'm working on a solution in Visual Studio 2010 Ultimate that contains two C#
I have a Visual Studio 2010 solution with 3 projects. The first is an
I have a Visual Studio 2010 solution with 8 projects. It also has a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.