Page 1 of 1

Memory increase when autoscrolling chart

Posted: Wed Oct 24, 2012 10:27 am
by 16863402
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);

Re: Memory increase when autoscrolling chart

Posted: Thu Oct 25, 2012 7:46 am
by 16863402
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

Re: Memory increase when autoscrolling chart

Posted: Thu Oct 25, 2012 9:20 am
by yeray
Hi,
flores1980 wrote:Rad Studio XE
https://dl.dropbox.com/u/42642491/Demo.zip
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.