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 826

Summary: Having a Chart3D with a Series, it crashes as soon as you make the depth axis visible
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: OpenGL 3DAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: 140512   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=15046&view=unread#unread
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2014-07-03 07:08:38 EDT
This crashes:

uses TeeSurfa;

var Chart3D1: TChart3D;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart3D1:=TChart3D.Create(Self);
  Chart3D1.Parent:=Self;
  Chart3D1.Align:=alClient;

  Chart3D1.Chart.AddSeries(TSurfaceSeries).FillSampleValues();

  Chart3D1.Chart.Axes.Depth.Visible:=true;
end;
Comment 3 yeray alonso 2014-07-04 05:38:21 EDT
This workaround seems to work fine for me here:

uses TeeChart3D, TeeSurfa;

var Chart3D1: TChart3D;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart3D1:=TChart3D.Create(Self);
  Chart3D1.Parent:=Self;
  Chart3D1.Align:=alClient;

  Chart3D1.Chart.AddSeries(TSurfaceSeries).FillSampleValues();

  Chart3D1.Chart.Axes.Depth.Visible:=true;

  Chart3D1.Chart.OnBeforeDrawAxes:=ChartBeforeDrawAxes;
end;

procedure TForm1.ChartBeforeDrawAxes(Sender: TObject);
begin
  Chart3D1.Chart.Canvas.View3DOptions:=Chart3D1.Chart.View3DOptions;
end;