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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:21:57+00:00 2026-05-31T08:21:57+00:00

My Delphi XE application is based on a single EXE using a local server

  • 0

My Delphi XE application is based on a single EXE using a local server DLL created by RemObjects and uses a lot of memory for a specific operation until it generates an exception saying there are not enough memory. So I’m trying to understand why and where this is happening so I placed various steps throughout my code where I report on memory usage. The problem is that I’m getting very different information based on the method used to get memory usage information:

  1. If I use the method explained here which asks FastMM directly for both the Client EXE and Server DLL, here is what I get:

    • STEP 1: [client] = 36664572 – [server] = 3274976
    • STEP 2: [client] = 62641230 – [server] = 44430224
    • STEP 3: [client] = 66665630 – [server] = 44430224
  2. Now if I use the method explained here which uses GetProcessMemoryInfo, I get far more memory usage:

    • STEP 1: [process] = 133722112
    • STEP 2: [process] = 1072115712
    • STEP 3: [process] = 1075818496

It looks like second method is the right based on my memory problems but how could the FastMM method be so “low” ? And what can explain the difference ?

  • 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-31T08:21:59+00:00Added an answer on May 31, 2026 at 8:21 am

    GetProcessMemoryInfo also reports memory that is not managed by FastMM, like memory that is allocated by the various non Delphi dlls you might call (like winapi).

    Also FastMM can allocate more memory from Windows that your application actually uses for internal structures, fragmentation and pooling.

    And as last, with GetProcessMemoryInfo you measuring the Workingset size. That is what part of the application’s memory currenctly in RAM instead if in the page file. It includes more than just data structures and is definately not comparable to the total memory the application has allocated. PagefileUsage would be more comparable. Workingset size almost never is what you are looking for. See here for a better explanation.

    So they both give different results because they both measure different things.

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

Sidebar

Related Questions

I have a Delphi application similar to Taskbar Shuffle that includes a hook dll.
I'm using the TServerSocket component in my Delphi application. I would like to limit
I would like to be able to dictate into my Delphi application using Microsoft
Which additional files are needed to deploy a delphi dbexpress based application to get
I need to create a chart in excel in a delphi application based on
I have a large delphi application and I am trying to keep the memory
I have a Delphi application using DevExpress cxGrid (which is connected to database). I
I check a possibility to integrate fusiontables into my Delphi TWebBrowser based application. But
I'm making an application in C#, based on Delphi (converting code), but I found
I have a legacy desktop accounting application developed using Delphi 5 & Paradox, which

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.