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

  • Home
  • SEARCH
  • 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 663413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:29:13+00:00 2026-05-13T23:29:13+00:00

I have a MS-Visual Studio 2005 workspace having all c code. This application(exe) allocates

  • 0

I have a MS-Visual Studio 2005 workspace having all c code. This application(exe) allocates memory dynamically from heap using malloc and realloc. I want to calculate the maximum size allocated size allocated on heap using malloc/realloc by this application program when i run particular test case.

I do not want to change the code by noting the malloc sizes and accumulating them, because:

a) there can be a scenario, that some memory of 1KB is malloc’ed, then freed, and then a memory of 2KB is malloc’ed. So max is 2KB, which i need to get as the value and not 1+2=3KB.

So i have to really see whereall malloc/free is happening in this code and add code for this, which i want to avoid.

1) So are there any tools(freeware/licensed) to find size of maximum or total memory allocated dynamically using malloc/realloc?

2)Does MS Visual Studio 2005/2008 itself provide anything of this sort?

thanks,

-AD

  • 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-13T23:29:13+00:00Added an answer on May 13, 2026 at 11:29 pm

    Memory Validator can do this.

    There are several different reports that you will find useful:

    • Running Totals. This is presented as a dialog box and provides current, cumulative and total values for each of the main memory allocator (C runtime, HeapAlloc, LocalAlloc, GlobalAlloc, CoTaskMemAlloc, etc).

    • Objects. This is one of the main tabs and displays object type, size, count, cumulative.
      Also subtabs for per-thread and per-dll values.

    • Sizes. This is one of the main tabs and displays size, count, cumulative.
      Also subtabs for per-thread and per-dll values.

    • Virtual. This displays a graphical view of memory (one pixel == one page of memory) and has subtabs showing detailed virtual memory data for virtual memory pages and virtual memory paragraphs.

    Full disclosure: I am part of the Memory Validator team.

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

Sidebar

Related Questions

Visual Studio 2005 C++ Windows XP Pro I have a sample application that I
I have a main C++ app built in Visual Studio 2005, called A.exe. It
The installer insist that I have Visual Studio 2005 installed. This brings me to
I have a Visual Studio 2005 C++ project, it is a console application. I
I have a Visual Studio 2005 C#.NET GUI application. I want to provide the
I have a Visual Studio 2005 C#.NET GUI application. I want to provide the
I have a visual studio 2005 solution which has a web application and a
I am using C++ and Visual Studio 2005. I have a project that memory
I have a small asp.net application writed in Visual Studio 2005. Project working in
We have a native C++ Win32 .exe built using Visual Studio 2005 that works

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.