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 1738

Summary: The Chart Draw method causes an EInvalidOperation Excetpion.
Product: VCL TeeChart Reporter: sandra pazos <sandra>
Component: CanvasAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED WORKSFORME    
Severity: normal CC: david
Priority: Normal    
Version: 20.170306   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description sandra pazos 2017-01-02 10:31:18 EST
The Chart Draw method causes an EInvalidOperation Excetpion. The problem doesn't occur using Steema TeeChart Pro VCL/FMX 2016.18 when the chart is drawn in GDI. In latest Teechart release the problem is produced always. 

The code below shows the problem:

uses Series, TeEngine, TeCanvas, Chart;
var Chart1:TChart;
procedure TForm1.Button1Click(Sender: TObject);
begin
  Chart1 := TChart.Create(nil);
  Chart1.Color := clWhite;
  Chart1.Canvas := TTeeCanvas3D.Create;
  Chart1.Draw;
end;