Memory leak

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Frank
Newbie
Newbie
Posts: 1
Joined: Mon Jul 08, 2002 4:00 am
Location: Amsterdam
Contact:

Memory leak

Post by Frank » Tue Mar 02, 2004 9:41 am

When i execute the following code more then once the memory that my app uses is growing. I tested the code with memproof but there seams not to be a memory leak. If this program runs for a few days and executes this code every minute then it uses hunderds MB's.

Anybode an idea. I'm using v6.01 with D5

ChartLine.FreeAllSeries;
ChartLine.Foot.Text.Text := FootText;
Serie := TLineSeries.Create(ChartLine);
ChartLine.AddSeries(Serie);

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Mar 02, 2004 1:55 pm

Hi, Frank.

I'd use slightly different code:

Code: Select all

ChartLine.FreeAllSeries;
ChartLine.Foot.Text.Clear;
ChartLine.Foot.Text.Add(FootText);
Serie := TLineSeries.Create(Form1);
Serie.ParentChart := Chart1;
Using this code and TeeChart v6.01 everything worked fine (no mem leaks after several calls to this code).
Marjan Slatinek,
http://www.steema.com

Post Reply