Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/FireMonkey/Runtime    [ Add a report in this area ]  
Report #:  105883   Status: Closed
[iOS] Memory Leak in TCanvasCocoa.FillText and TCanvasCocoa.MeasureText
Project:  Delphi Build #:  Update4 Hotfix1
Version:    16.4 Submitted By:   Xavier Dufaure de Citres
Report Type:  Crash / Data loss / Total failure Date Reported:  5/24/2012 5:53:30 PM
Severity:    Critical / Show Stopper Last Updated: 4/23/2013 8:13:54 AM
Platform:    Apple mobile OS Internal Tracking #:   28500
Resolution: Fixed (Resolution Comments) Resolved in Build: : XE4
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
The calls to TCanvasCocoa.FillText and TCanvasCocoa.MeasureText generate a memory Leak each time they are called (note that TText calls these).

If ran long enough memory will fill and the application will crash.
Steps to Reproduce:
Create a project with a background image and a few TText. On a Timer change the text.

Run the project under Profile, using the" memory leak" or "Allocations" instrumentation and observe leaks (TFont, CFString, Path etc..)
Modify FMX_Canvas_ios.pas
at the end of the functions add


Tomohiro Takahashi at 5/25/2012 12:46:02 AM -
This report was opened with valid Internal Tracking Number.

Server Response from: ETNACODE01