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 1869 - EOutOfMemory with TSurfaceSeries
Summary: EOutOfMemory with TSurfaceSeries
Status: RESOLVED NOTABUG
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 21.170329
Hardware: PC Windows
: --- blocker
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-22 06:51 EDT by Uwe Raabe
Modified: 2017-05-22 10:47 EDT (History)
1 user (show)

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


Attachments
Sample project to reproduce the bug (19.64 KB, application/x-zip-compressed)
2017-05-22 06:51 EDT, Uwe Raabe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Raabe 2017-05-22 06:51:13 EDT
Created attachment 764 [details]
Sample project to reproduce the bug

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:

- create a VCL forms application
- drop a TChart onto the form
- add a 3D surface series
- execute the code below

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;

When the series is going to be displayed the app memory goes beyond 1.5 GB and throws an exception.

The problem seems to be related to the large X- and Z-values. Everything is OK when the factor is removed and lower numbers are used.
Comment 1 Uwe Raabe 2017-05-22 06:52:27 EDT
BTW, this happened with the trial version.