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 1506 - Some LegendEvery values in a ColorGrid give AV depending on the height of the chart
Summary: Some LegendEvery values in a ColorGrid give AV depending on the height of the...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-13 04:58 EDT by yeray alonso
Modified: 2016-04-13 04:58 EDT (History)
0 users

See Also:
Chart Series: ColorGrid
Delphi / C++ Builder RAD IDE Version:


Attachments
test project (1.59 KB, application/x-zip-compressed)
2016-04-13 04:58 EDT, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2016-04-13 04:58:43 EDT
Created attachment 588 [details]
test project

Having a TColorGridSeries, changing the LegendEvery property ends giving Access Violations and the application ends being unusable.

The exact you have to set on the LegendEvery property depends on the chart height.
Using the default chart height (250) it crashes when you set LegendEvery to 4.

  Chart1.View3D:=false;
  with Chart1.AddSeries(TColorGridSeries) as TColorGridSeries do
  begin
    FillSampleValues;
    UsePalette:=true;
    UseColorRange:=false;
    LegendEvery:=4; //Crashes for the default chart Height 250
  end;

See the project attached.