Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
FireMonkey
Additional
Animations
Colors
Components
Dialogs
Effects
Form Designer
Layers
Menu Designer
Runtime
Shapes
Standard
Style Designer
You are not logged in.
Help
Print
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
Description
[iOS]
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..)
Workarounds
Modify FMX_Canvas_ios.pas
at the end of the functions add
CFRelease(path);
CFRelease(fontref);
CFRelease(paragraphStyle);
CFRelease(str);
Attachment
None
Comments
Tomohiro Takahashi at 5/25/2012 12:46:02 AM
-
This report was opened with valid Internal Tracking Number.
Thanks.
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us