Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 508 - Error when unzoom with zoom history
Summary: Error when unzoom with zoom history
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: 131119
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-09 10:58 EST by yeray alonso
Modified: 2013-12-16 07:23 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
zoom in and out (55.62 KB, application/octet-stream)
2013-12-09 10:58 EST, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2013-12-09 10:58:54 EST
Created attachment 52 [details]
zoom in and out

Reproduced with the actual sources in XE5, both with Standard and Pro.
Can't be reproduced with the actual sources in D7.

To reproduce the error, just run the project attached, zoom in once and unzoom.

http://www.teechart.net/support/viewtopic.php?f=3&t=14558
Comment 1 david berneda 2013-12-16 07:23:26 EST
Fixed. 

The problem (double-free), happened in XE4 and 5.
Zoom history snapshots are stored in a TObjectList in XE4 and 5, and the TCustomChart.RemoveZoomSnapShot method was both freeing and deleting the history item, instead of just deleting it, as TObjectList automatically destroys deleted objects.

Now in XE4 and 5, the zoom item is deleted only.