TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
flores1980
- Newbie
- Posts: 2
- Joined: Mon Sep 03, 2012 12:00 am
Post
by flores1980 » Wed Oct 24, 2012 10:27 am
Hi im using this simple code to make my chart autoscroll showing only the last 30 points ploted. The problem i have is that memory usage increase continously when i add. However the number of points given by Serie1->Count() is never higher than 30 points.
Any help?
Code: Select all
if(Serie1->Count() == 30)
{
Serie1->Delete(0);
}
Serie1->AddXY(nValueX, nValueY, "Label", clBlack);
-
flores1980
- Newbie
- Posts: 2
- Joined: Mon Sep 03, 2012 12:00 am
Post
by flores1980 » Thu Oct 25, 2012 7:46 am
I have develop a demo very simple and i have the same result. Memory is never released.
The demo only add 20 points to a chart and then removes one point periodically each second.
No solution about this? Thanks
Rad Studio XE
https://dl.dropbox.com/u/42642491/Demo.zip
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Thu Oct 25, 2012 9:20 am
Hi,
The zip doesn't contain Unit2.cpp, and the application claims for it.
I've tried to reproduce the problem with the example at "All features\Welcome !\Speed\Fast Delete and Fast Pen". By default, this demo removes the first 5000 points when the series has more than 10000 points.
I've ran it for about 5 minutes here and the Tee9New process always consumes between 5.800 and 6.300 KB.