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 - The Chart Draw method causes an EInvalidOperation Excetpion.
Summary: The Chart Draw method causes an EInvalidOperation Excetpion.
Status: RESOLVED WORKSFORME
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Canvas (show other bugs)
Version: 20.170306
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-02 10:31 EST by sandra pazos
Modified: 2023-03-17 15:37 EDT (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 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;