Question: How is the allocated memory calculated?

delphi package - automated exception handling
Post Reply
x3mike
Posts: 8
Joined: Fri Apr 26, 2013 12:50 pm

Question: How is the allocated memory calculated?

Post by x3mike »

Hello,

how is the allocated memory calculated? A comparison shows a difference between the reported memory consumption and the memory sets shown in the Windows Task Manager.

Code: Select all

allocated memory : 199,61 MB
largest free block : 694,60 MB 
exec. date/time : 2017-07-26 17:58
version : 1.0.6416.62736
compiled with : Delphi XE6
madExcept version : 4.0.18 
The Task Manager shows 127.504K and madExcept shows 199.61MB

Thank you for clarification!
Best regards,
Michael
Attachments
Task-Manager.png
Task-Manager.png (3.66 KiB) Viewed 3821 times
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Question: How is the allocated memory calculated?

Post by madshi »

I'm looping through the process address range with VirtualQuery and count all commited memory pages which don't belong to the EXE or to a DLL.

Code see madExcept.GetProcessMemInfo.
x3mike
Posts: 8
Joined: Fri Apr 26, 2013 12:50 pm

Re: Question: How is the allocated memory calculated?

Post by x3mike »

madshi wrote:I'm looping through the process address range with VirtualQuery and count all commited memory pages which don't belong to the EXE or to a DLL.

Code see madExcept.GetProcessMemInfo.
Thank you. Do you know, what the Task Manager shows about the memory consumption?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Question: How is the allocated memory calculated?

Post by madshi »

I don't know, would have to investigate that myself.
Post Reply