Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid pointer operation using TChart and TLineSeries

Status
Not open for further replies.

surjay

Programmer
Jun 11, 2009
2
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top