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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:07:09+00:00 2026-05-22T20:07:09+00:00

I inherited a very large subsystem from a programmer that left the company and

  • 0

I inherited a very large subsystem from a programmer that left the company and the first order of business is to stop the process from running out of memory.

Basically, it is a loop through a dataset, within which we create and destroy a data module that goes off and does lots of work. As long as this data module is created, you can see memory use climbing all the time in Task Manager until it blows up. I seem to recall from an article I read years ago that one shouldn’t fully trust what is reported by Task Manager, as the values are estimates and not real-time. So I am looking for alternatives.

Here’s what I have tried:

  1. ReportMemoryLeaksOnShutdown := True in my main project file, but it returns nothing. So either it doesn’t monitor memory leaked in packages that are loaded dynamically, or the memory gets freed before the app closes.
  2. AQTime. This is supposed to be a very wow product, but I find it completely underwhelming. If I use the allocation profiler, I end up with hundreds of lines containing nothing useful. Just a memory address, size and something along the lines of “VCL standard allocation.” It supposedly breaks down the information by routine, but I just get a flat list with no routine info whatsoever. So I don’t think it works.

Is there another tool that can help me trace where this memory is allocated and not freed? I’ve been commenting out little bits of functionality all over the place to see where the problem goes away and checked that everything that is explicitly allocated gets freed, but I still have a leak and it can be quite a frustrating process.

  • 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-22T20:07:09+00:00Added an answer on May 22, 2026 at 8:07 pm

    I absolutely would use AQTime, and NOTHING ELSE to determine memory usage information. Here is an example of the memory usage information I would expect you could find:

    1. Exact line that allocates memory with GetMem, TObject.Create.
    2. Nice counters of object counts and total memory used by various class types.

    First things first, let’s get the obvious things out of the way:

    A. You have to follow AQTime’s instructions and set your project settings up, including your compiler and linker settings, as documented well in the help files. Especially you need the Turbo Debugger (TD32) symbols in your linker options, and all the other options setup as you would set up for any other debug build of your project.

    B. You should try a tutorial first, before you use this with your own app.

    In short, I’ve used AQTime heavily, and when I’ve had problems, they have been solveable, so don’t give up yet on AQTime. If you can’t get your big app working, start by learning how to test a small app, a demo, or a tutorial exercise.

    Update: I have just tested it out myself, and I find that I am having trouble even making a basic demo of AQTime 7 with Allocation profiler work as described. I am using AQTime 7.10.380 pro.

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

Sidebar

Related Questions

We've inherited a rather large Access DB that has some very strange (and unsettling)
I've got a rather hideous and large javascript file that I've inherited from a
I have inherited a very old database that needs some data to be updated.
I've recently inherited an application that makes very heavy use of session, including storing
I've recently inherited the job of maintaining a database that wasn't designed very well
I've inherited a (Microsoft?) SQL database that wasn't very pristine in its original state.
I have inherited a large admin winforms application that shares a 'Common' library of
I've inherited a large pile of Ruby code that's, frankly, close to impossible to
I inherited a database built with the idea that composite keys are much more
I inherited a project that uses SQL Server 200x, wherein a column that stores

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.