memory issue

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
kualoa1
Newbie
Newbie
Posts: 27
Joined: Fri Nov 21, 2008 12:00 am

memory issue

Post by kualoa1 » Mon Dec 08, 2008 3:39 pm

In delphi, I have a loop that repeated refreshes and reloads a chart.

The chart was created at design time.

I am getting an out of memory error after running approximately 250 instances.

Should something be freed or refreshed relating to the chart?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Dec 09, 2008 12:14 pm

Hi kualoa1,

Could you please send us a simple example project we can run "as-is" to reproduce the problem here and let us know the characteristics of the environment where the problem occurs?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

kualoa1
Newbie
Newbie
Posts: 27
Joined: Fri Nov 21, 2008 12:00 am

Post by kualoa1 » Wed Dec 10, 2008 5:41 pm

I cannot provide this code at the moment.

Can you please tell me in general -- I create a chart at design time. at runtime, that chart is repeated created with different values in a loop. how can I be sure that there is no cumulative incaresing memory use due to the chart creation; can it be freed and if so please show me suggested instruction.

Thank you.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Dec 15, 2008 10:17 am

Hi kualoa1,

You could try doing this:

Code: Select all

  Chart1.FreeAllSeries(nil);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply