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 1780

Summary: SeriesGroups badly implemented causing an AV on TCHart.ClearChart.
Product: VCL TeeChart Reporter: h.hasenack <hans>
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED WORKSFORME    
Severity: major CC: sandra
Priority: ---    
Version: 17.160426   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description h.hasenack 2017-02-09 10:30:58 EST
Discovered the bug because my 64bit app was crashing when reloading a chart. the old chart was cleared before the new was loaded. But some seriesgroups were defined.
The seriesgroups collection was not cleared when the chart was cleared. a bit later I write the chart to a stream causing an AV in TSeriesGroup.Writeseries because the internal series pointer was pointing to a destroyed object.

My quikck fix was to add aSeriesGroups.Clear to the TChart.ClearChart method. IMO The real solution would be to implement a notification procedure for tcustomaxispanel that removes destroyed series from the seriesgroups as wel.
Comment 1 sandra pazos 2018-02-27 08:17:56 EST
Hello,

The problem doesn't appear for me using latest TeeChart Pro VCL/FMX v2017.23.

Thanks in advance