XE4 + TeeChart Build 2013.08.130521 Series.DataSource bug
Posted: Fri Jun 28, 2013 8:59 pm
Hi,
After assigning nil to a datasource property of TPointSeries and then assigning existing DataSet FreeMM4 reports this error:
To reproduce it:
1.drop TDBChart
2.Create TPointSeries
3.Create TClientDataSet with 2 BCD fields for X and Y values.
4. Add several records
5. Assign the client dataset as datasource for the series
6.assign x and y
7.add button and use the code above.
For best results use FastMM4 in full debug mode.
Tools:
Delphi XE4 Update 1 and TeeChart Build 2013.08.130521
Please let me know for workaround or when it will be fixed?
After assigning nil to a datasource property of TPointSeries and then assigning existing DataSet FreeMM4 reports this error:
If I disable FastMM4 the app reports:---------------------------
Project1.exe: Memory Error Detected
---------------------------
FastMM has detected an attempt to call a virtual method on a freed object. An access violation will now be raised in order to abort the current operation.
Freed object class: TDBChartDataSource
Virtual method: Destroy
....
---------------------------
OK
---------------------------
Part of the code is:---------------------------
Project1
---------------------------
Invalid pointer operation.
---------------------------
OK
---------------------------
Code: Select all
procedure TForm1.Button2Click(Sender: TObject);
begin
Series1.DataSource := nil; // <-- this raises the error
Series1.DataSource := ClientDataSet1;
end;
1.drop TDBChart
2.Create TPointSeries
3.Create TClientDataSet with 2 BCD fields for X and Y values.
4. Add several records
5. Assign the client dataset as datasource for the series
6.assign x and y
7.add button and use the code above.
For best results use FastMM4 in full debug mode.
Tools:
Delphi XE4 Update 1 and TeeChart Build 2013.08.130521
Please let me know for workaround or when it will be fixed?