thanks to User Taz I got to know a Windows API function today, which can show me the memory usage of my application. The procedure looks like this:
Code: Select all
Procedure.i GetProcessMemoryUsage()
Protected.i iResult, iLib, iPID
Protected PMC.PROCESS_MEMORY_COUNTERS
iPID = GetCurrentProcess_()
iLib = OpenLibrary(#PB_Any, "psapi.dll")
If iLib
If CallFunction(iLib, "GetProcessMemoryInfo", iPID, @PMC, SizeOf(PROCESS_MEMORY_COUNTERS))
iResult = PMC\WorkingSetSize / 1024
EndIf
CloseLibrary(iLib)
ProcedureReturn iResult
Else
ProcedureReturn 0
EndIf
EndProcedure
So my question is, what value does the Windows task manager show?
btw: Yes, I compiled my programm as x86 Exe, therfore the *32 in the Taskmanager is correct.