Finding Available Memory in Delphi XE2 for iOS Application
Posted on 2012-09-13
I haven’t had to do this for quite some time, but I think I need to trace a memory leak. I’m using Delphi XE2’s FireMonkey to create an iOS application. Years ago, I would use the TMemoryStatus object to give me feedback as to free memory like so:
AString:= Format(‘%12.0n’, [MS.dwAvailPhys]);
In XE2, the TMemoryStatus object appears to be no longer defined in the SysUtils unit that is used for iOS applications and so gives an unidentified error.
My question is how can I similarly query available memory to find out where my leak might be?