Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!


Memory Manager Extension For Leak Checking With Firemonkey In Delphi 10 Seattle On Android

Delphi 10 Seattle Memory Leak Checker AndroidDeveloper Honza Rames has a memory manager extension project which allows you to check for leaks in Android apps built with Firemonkey in Delphi 10 Seattle. The Delphi LeakCheck library works with both Android, Win32, and Win64. By default it integrates with DUnit and DUnitX. You can allocate stack traces with symbols, allocate snapshops (which are not thread safe), intercept virtual and interface calls on freed objects, plus independent object structure scanning. It includes complex leak ignoring options and there are minimal external dependencies. It is pretty simple to use in that you just add LeakCheck to your uses clause at the top and then enable ReportMemoryLeaksOnShutdown like you normally would do on Win32. It can be used as a full replacement of FastMM full debug mode but it is not as fast as possible. On Android the output from ReportMemoryLeaksOnShutdown is sent to the Android logcat functionality. Only up to Delphi XE7 is mentioned in the docs but it has been updated recently so it probably supports Delphi 10 Seattle as well. For IOS debugging try LemonJar.

Head over and download the full source code for the Delphi LeakCheck library for Firemonkey on Android.


Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply