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


Find Memory Leaks With Xcode Instruments In Delphi XE5 And XE6 Firemonkey Apps On IOS

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE5 XE6 Firemonkey Debug Xcode Instruments Memory Leaks | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSAdrian Gallero from TMS Software has a blog post up where he explains how to use the Xcode Instruments tool to find memory leaks in your Delphi XE5 and XE6 Firemonkey apps on IOS. TMS Software makes quite a few component sets for Firemonkey. Basically Delphi XE5, Delphi XE6, and AppMethod apps for IOS get compiled down into Xcode compatible LLVM backend and debug information. What this means is that you can probably use all of the Xcode Instruments tools like Allocations, Leaks, Activity Monitor, Zombies, Time Profiler, System Trace, and Automation. The blog post focuses on the Leaks tool and demonstrates how you can take your IOS app that is already on the IOS device (and compiled in Debug mode) and target it with the Leaks tool. You will see all of your Delphi class names and method names just like if you were debugging in Delphi itself. The call stack is displayed along a timeline and will show where there are memory leaks. Finally at the end of the blog post he explains how to use the [WEAK] attribute to fix the memory leak he created between a Parent and a Child object. Using Xcode Instruments does require that you have your device connected to the Mac you are running Xcode on so if you use MacInCloud this will not work for you. However, in another blog post I’ve covered how you can use NSLog to write out debug information to the IOS console as a second way for debugging IOS apps created in Delphi.

Head over and read the full blog post about using the Xcode Instruments Leaks feature to debug your Delphi apps on IOS.

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

Related posts

Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


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

Sign up for our Newsletter and
stay informed

Leave a Reply