billyb 1 Posted June 29, 2021 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
Cristian Peța 103 Posted June 30, 2021 Set an event handler: if TPlatformServices.Current.SupportsPlatformService(IFMXApplicationEventService, IInterface(AppEventService)) then AppeventService.SetApplicationEventHandler(My_ApplicationEventHandler); And in that event you will receive the warning: function TFormMain.My_ApplicationEventHandler(AAppEvent: TApplicationEvent; AContext: TObject): Boolean; begin case AAppEvent of TApplicationEvent.LowMemory: ; end; end; 2 Share this post Link to post
billyb 1 Posted June 30, 2021 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