I've ran into an issue with a TChart and TLineSeries. If if I enter an X value around 1818 and an Y value of 0 with AddXY() right off the bat I get 'invalid pointer operation'.
Here's an example function:
procedure TForm1.Button2Click(Sender: TObject);
var
VMinValue: Extended;
begin
VMinValue := StrToFloat(InputBox('min value', 'enter the min value', ''));
with SeriesNumericScores do
AddXY(VMinValue, 0)
end;
Where 'SeriesNumericScores' is the TLineSeries. Anything less than 1818 works, or if I begin with a lower value and then continue to add more points it also works. Everytime the initial point is X:1818, Y:0....or anything above 1818 it errors out with the invalid pointer operation.
I'm wondering if anybody has seen this before or if anybody knows of a setting that could be causing this. Looking through the object inspector, no properties or settings really jump out as something that would potentially be causing this.
Any help would be greatly appreciated.
Here's an example function:
procedure TForm1.Button2Click(Sender: TObject);
var
VMinValue: Extended;
begin
VMinValue := StrToFloat(InputBox('min value', 'enter the min value', ''));
with SeriesNumericScores do
AddXY(VMinValue, 0)
end;
Where 'SeriesNumericScores' is the TLineSeries. Anything less than 1818 works, or if I begin with a lower value and then continue to add more points it also works. Everytime the initial point is X:1818, Y:0....or anything above 1818 it errors out with the invalid pointer operation.
I'm wondering if anybody has seen this before or if anybody knows of a setting that could be causing this. Looking through the object inspector, no properties or settings really jump out as something that would potentially be causing this.
Any help would be greatly appreciated.