Page 1 of 1

Question: How is the allocated memory calculated?

PostPosted: Wed Jul 26, 2017 6:34 pm
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

Re: Question: How is the allocated memory calculated?

PostPosted: Thu Jul 27, 2017 8:14 am
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.

Re: Question: How is the allocated memory calculated?

PostPosted: Thu Jul 27, 2017 9:50 am
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?

Re: Question: How is the allocated memory calculated?

PostPosted: Thu Jul 27, 2017 9:57 am
by madshi
I don't know, would have to investigate that myself.