Jump to content

need code to receive low memory warning

Recommended Posts

I have a delphi app that appears to be crashing due to low memory. How do I define a routine to capture any low memory warnings sent by IOS?

My app is running on IOS 10.4.6 on a 7gen ipad.



Share this post

Link to post

Set an event handler:

  if TPlatformServices.Current.SupportsPlatformService(IFMXApplicationEventService, IInterface(AppEventService)) then

And in that event you will receive the warning:

function TFormMain.My_ApplicationEventHandler(AAppEvent: TApplicationEvent; AContext: TObject): Boolean;
  case AAppEvent of
    TApplicationEvent.LowMemory: ;


  • Like 2

Share this post

Link to post

I have added the code and it works, thank you.

Turns out I do not have a memory issue with the app.


Bill B

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now