Memory issue with DBChart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Nicho
Newbie
Newbie
Posts: 13
Joined: Mon Jul 09, 2007 12:00 am
Location: Adelaide Australia
Contact:

Memory issue with DBChart

Post by Nicho » Mon Sep 08, 2008 4:44 am

I found that linking a chart to a data source and then using:

(*
Series1.DataSource := DataTable;
Series1.CheckDataSource;
*)
was very slow plotting points and crashed with memory allocation with around 9,000 XY points.

Manually adding the XY coords was a lot faster and did not cause a memory issue. eg
(*
while not DataTable.EOF do
begin
NumPts := NumPts + 1;
Series1.AddXY(DataTable.FieldByName('DateTime').AsDateTime, DataTable.FieldByName('Value').AsFloat);
DataTable.Next;
end;
*)

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 Sep 08, 2008 8:45 am

Hi Nicho,

Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

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

Nicho
Newbie
Newbie
Posts: 13
Joined: Mon Jul 09, 2007 12:00 am
Location: Adelaide Australia
Contact:

Post by Nicho » Tue Sep 09, 2008 1:35 am

Thanks for your reply. It will be a couple of days before I can send you an example - I'll have to make a 'cut -down' version of my software. I'm using an SQL database called NexusDB with over million coordinates. I then filter this DB to provide the XY coordinates that I want to plot. As you probably would not have NexusDB I can provide the data in a CSV file for you.

Cheers

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 Sep 09, 2008 8:34 am

Hi Nicho,

Yes, a CSV file would be fine for us.

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

Post Reply