enabling TChart3D Depth axes causes crash

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
niotronic
Newbie
Newbie
Posts: 14
Joined: Mon Jul 15, 2013 12:00 am

enabling TChart3D Depth axes causes crash

Post by niotronic » Wed Jul 02, 2014 2:46 pm

Dear Yeray,

I'm currently using TChart3D with three TSurfaceSeries. Enabling the BottomAxis, LeftAxis by setting its visible property to TRUE (Chart3D.Axes.Bottom.visible:=TRUE for example) is working fine - the bottom and LeftAxis are shown as expected. If I set Chart3D.Axes.Depth.Visible:=TRUE or Chart3D.Axes.DepthTop.Visible:=TRUE the program crashes in function TwinControl.Painthandler ? It also crashes if I set the "Visible" properties of those two axes in the TChart Editor at design time!
Do you have an idea whats going wrong here ?

Best regards,

Klaus

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: enabling TChart3D Depth axes causes crash

Post by Yeray » Thu Jul 03, 2014 11:18 am

Hi Klaus,

I could reproduce the problem so I've created a new ticket in the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=826
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: enabling TChart3D Depth axes causes crash

Post by Yeray » Fri Jul 04, 2014 9:39 am

Hello,

This seems to work as a workaround for me here:

Code: Select all

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply