EOutOfMemory with TSurfaceSeries
Posted: Sun May 21, 2017 10:13 am
I get an EOutOfMemory exception displaying a 3D surface with my data. Luckily I was able to track down the problem to a few lines of code:
The problem seems to be related to the large X- and Z-values. Everything is OK when the factor is removed.
- create a VCL forms application
- drop a TChart onto the form
- add a 3D surface series
- execute the code below
Code: Select all
var
I: Integer;
J: Integer;
begin
Series1.Clear;
for I := 10 to 100 do begin
for J := 1 to 100 do begin
Series1.AddXYZ(I*10, Random(10), J*100000);
end;
end;
end;