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 - SeriesGroups badly implemented causing an AV on TCHart.ClearChart.
Summary: SeriesGroups badly implemented causing an AV on TCHart.ClearChart.
Status: RESOLVED WORKSFORME
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: 17.160426
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-09 10:30 EST by h.hasenack
Modified: 2018-02-27 08:17 EST (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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