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 612

Summary: Access violation when closing a form with tdbchart on it and with active series datasets
Product: VCL TeeChart Reporter: lstauber
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: david, sandra
Priority: High    
Version: 140220   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version: RAD XE5
Attachments: project to be compiled, runned and closed. AV appearts.

Description lstauber 2014-02-28 10:42:50 EST

    
Comment 1 lstauber 2014-02-28 10:44:38 EST
Created attachment 106 [details]
project to be compiled, runned and closed. AV appearts.

compile, run, and close. You'll get an AV and many memory leaks.
Comment 2 lstauber 2014-02-28 10:49:12 EST
it is the version from http://cc.embarcadero.com/item/29708 (the original delphi xe5 version contains this bug also)

there was no such bug in delphi xe.
Comment 3 david berneda 2014-03-03 12:01:28 EST
Problem has been fixed. An updated will be available soon.
Sorry for the incovenience.
A workaround is described at Embarcadero Quality Central database:

QC122729

http://qc.embarcadero.com/wc/qcmain.aspx?d=122729

The workaround is, before destroying the DBChart Series or closing the form, call the protected RemovedDataSource method, passing the Series and Series DataSource, like:

type
  TChartAccess=class(TDBChart);

 TChartAccess(DBChart1).RemovedDataSource(Series1,Series1.DataSource);

This must be done for all series that have Datasets as DataSource.