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

Summary: Error when unzoom with zoom history
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: david
Priority: ---    
Version: 131119   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: zoom in and out

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.