Question: How is the allocated memory calculated?

delphi package - automated exception handling

Question: How is the allocated memory calculated?

Postby x3mike » Wed Jul 26, 2017 6:34 pm

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.68 KiB) Viewed 211 times
x3mike
 
Posts: 6
Joined: Fri Apr 26, 2013 12:50 pm

Re: Question: How is the allocated memory calculated?

Postby madshi » Thu Jul 27, 2017 8:14 am

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.
madshi
Site Admin
 
Posts: 9470
Joined: Sun Mar 21, 2004 5:25 pm

Re: Question: How is the allocated memory calculated?

Postby x3mike » Thu Jul 27, 2017 9:50 am

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?
x3mike
 
Posts: 6
Joined: Fri Apr 26, 2013 12:50 pm

Re: Question: How is the allocated memory calculated?

Postby madshi » Thu Jul 27, 2017 9:57 am

I don't know, would have to investigate that myself.
madshi
Site Admin
 
Posts: 9470
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 4 guests