新建一个工程.加一按钮和一个Tchart.加一个Series.
procedure TForm1.Button1Click(Sender: TObject);
var fx,fy: double;
begin
    fy := 1817;
    fx := 288;
    Chart1.Series[0].AddXY(fy,fx);
end;=============(上面这段代码不出错)======================================
procedure TForm1.Button1Click(Sender: TObject);
var fx,fy: double;
begin
    fy := 1818;         //就这里不一样.
    fx := 288;
    Chart1.Series[0].AddXY(fy,fx);
end;-------------------出错代码-----------------------
---------------------------
Debugger Exception Notification
---------------------------
Project Project1.exe raised exception class EInvalidPointer with message 'Invalid pointer operation'. Process stopped. Use Step or Run to continue.
---------------------------
OK   Help   
---------------------------======================================================================
请问.这是怎么回事??是不是还要在哪里设置一下??