Access Violation in TeeChart v7.08
Posted: Fri Mar 30, 2007 11:50 am
I used TeeChart v7.08 Win32 for Delphi 2006.
Sometimes Access Violation appears.
I analysed the nature of this error and prepare small Test Project to reproduce it. But I don't found, how I can sand it.
--------
Problem consists in the following:
1. TeeChart Owner component is destroyed.
2. TeeChart.Series.DataSource is destroyed before TeeChart.
TeeChart.Series.DataSource is not set to nil on DataSource.RemoveNotify as csDestroying in ComponentState => TChartSeries.InternalRemoveDataSource does nothing.
3. Memory used for TeeChart.Series.DataSource is reallocated.
4. TeeChart destructor is called.
Further Error CallStack follows:
TCustomAxisPanel.Destroy
TCustomAxisPanel.FreeAllSeries
TChartSeries.SetParentChart
TCustomAxisPanel.RemoveSeries
TChartSeries.Removed
TChartSeries.RemoveAllLinkedSeries
TObject(DataSources[0]) is TChartSeries - Access Violation
Sometimes Access Violation appears.
I analysed the nature of this error and prepare small Test Project to reproduce it. But I don't found, how I can sand it.
--------
Problem consists in the following:
1. TeeChart Owner component is destroyed.
2. TeeChart.Series.DataSource is destroyed before TeeChart.
TeeChart.Series.DataSource is not set to nil on DataSource.RemoveNotify as csDestroying in ComponentState => TChartSeries.InternalRemoveDataSource does nothing.
3. Memory used for TeeChart.Series.DataSource is reallocated.
4. TeeChart destructor is called.
Further Error CallStack follows:
TCustomAxisPanel.Destroy
TCustomAxisPanel.FreeAllSeries
TChartSeries.SetParentChart
TCustomAxisPanel.RemoveSeries
TChartSeries.Removed
TChartSeries.RemoveAllLinkedSeries
TObject(DataSources[0]) is TChartSeries - Access Violation