2012 VCL Out of Memory Error

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
CPStevenC
Newbie
Newbie
Posts: 1
Joined: Thu Oct 30, 2014 12:00 am

2012 VCL Out of Memory Error

Post by CPStevenC » Fri Jan 16, 2015 6:02 pm

Using Delphi 7 , TeeChart PRO v2012.05.120327, with source.

I have an issue where a chart that actually has nothing on it, eventually freaks out and hogs up memory to point of crashing (1.4gb)

Chart has two THighLowLineSeries in it. Which in my case, it should be nothing in them yet.

It seems to happen after resizing the chart a few times.

It gets stuck in a while loop it looks in TeEngine.pas

Line 5710

While tmpValue>=tmp Do
begin
....

tmpValue is always 0
tmp = -1e-12

soooo, it stis there doing the same thing over and over until it out of memory.

I have not tried to goto 2014 yet, as every time I upgrade teechart after long periods of not updating, it usually is a painful process of fixing things and testing everything all over again.

Is there a fix for this? Or going to 2014 the fix?

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: 2012 VCL Out of Memory Error

Post by Yeray » Mon Jan 19, 2015 10:00 am

Hello,

I'm trying to reproduce the problem with TeeChart v2012.05, Delphi 7 and the following code but I can't:

Code: Select all

uses Chart, TeeHighLowLine, TeeConst;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;
  Chart1.Align:=alClient;

  Chart1.Title.Text.Text:=TeeMsg_Version;
  Chart1.View3D:=false;
  Chart1.Legend.Visible:=false;

  Chart1.AddSeries(THighLowLineSeries).FillSampleValues();
end;
I'm resizing the form to see if the application crashes or if the memory grows in the Task Manager, but it stays around 800 Kb.
Could you please try to arrange a simple example project we can run as-is to reproduce the problem here?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply