Page 1 of 1

Memory leak

Posted: Tue Mar 02, 2004 9:41 am
by 5893585
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);

Posted: Tue Mar 02, 2004 1:55 pm
by Marjan
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).