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

AppmethodDelphiFiremonkeyIOSUtility

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
DelphiDemoFiremonkeyLinuxOSXShowcaseWindows

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging

DelphiFiremonkeyShowcaseUtilityWindows

Unleashing Creativity With Song Writer AI: A Deep Dive

DelphiFiremonkeyShowcaseWindows

How To Build Stable Diffusion Text To Image Prompts

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

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

Sign up for our Newsletter and
stay informed

Leave a Reply