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 1002 - AV when filling a TSurfaceSeries with NumXValues=1
Summary: AV when filling a TSurfaceSeries with NumXValues=1
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 140923
Hardware: PC Windows
: Lowest trivial
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-12 06:09 EST by yeray alonso
Modified: 2014-11-12 06:20 EST (History)
0 users

See Also:
Chart Series: Surface 3D
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 yeray alonso 2014-11-12 06:09:31 EST
This gives an AV at SortCells when drawing the TSurfaceSeries:

uses TeeConst, Chart, TeeSurfa;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Caption:=TeeMsg_Version;

  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;
  Chart1.Align:=alClient;

  Chart1.View3DOptions.Orthogonal := False;
  //Chart1.Aspect.Rotation:=300; // works fine

  with Chart1.AddSeries(TSurfaceSeries) as TSurfaceSeries do
  begin
    NumXValues := 1;
    FillSampleValues;
  end;
end;

If you increment NumXValues or set a Rotation=300 then it works without problems.