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 9157327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:59:17+00:00 2026-06-17T12:59:17+00:00

I am trying to debug memory usage in a large application using Delphi 7.

  • 0

I am trying to debug memory usage in a large application using Delphi 7. I was able to installed fastmm debug full dll and with it solve some leak problems.

I also installed the memory usage tracker, allowing me to see which blocks were allocated and of what size they are.

My question is, is there a way to find out where the blocks were allocated? I know it is possible because if the memory wasn’t freed a stack trace gets printed. Is there a way to ‘poke’ at fastmm to get it to print the stack trace for a given allocation?

Side question: if the start address of an allocation is known, is there a way to find out which class the object is? (assuming that the allocation was for a object.

  • 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-06-17T12:59:18+00:00Added an answer on June 17, 2026 at 12:59 pm

    You can either:

    • try to use LogAllocatedBlocksToFile procedure. If its ALastAllocationGroupToLog param is less than AFirstAllocationGroupToLog or is zero, then all blocks along with their allocation call stacks are logged. However, if your app has many memory allocations, prepare to long waiting. I experienced about 4 hrs wait time and 1.5Gb resulting file. (Side-note: use glogg to view such large files)
    • modify FastMM4.pas so implementation’s LogCallStack will be visible in interface. Or you can try to use it directly from FastMM_FullDebugMode.dll

    On the side question: try to use DetectClassInstance function.

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

Sidebar

Related Questions

I am trying to debug a large application build using Qt/C++ and valgrind is
I'm trying to debug a memory leak in a Node.js application but cannot install
I'm trying to debug kernel module. I suspect to have there some memory leaks.
I am trying to debug some work that processes large files. The code itself
I'm having a hell of a time trying to debug some kind of memory
I am trying to get memory usage values using this class, but all the
I am trying to debug an application using gdb on Linux. However, when loading
I’m trying to debug a memory leak problem. I’m using mtrace() to get a
I'm trying to debug an old VB6 program at my job. It's full of
I am trying to debug a few regular expressions using: perl -Mre=debug file.pl The

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.