Page 1 of 1

ColorGrid series uses huge amount of memory

Posted: Wed Jan 16, 2013 11:08 pm
by 15659509
Hi,
We are using ColorGrid series to display our data. It appears, that the series is allocating a lot of memory. This makes its usage hardly feasible.
I am attaching a test project together with screen shots from the profiler.
What we found, is that TChart is allocating 20000 int per each x value. 500 point chart allocates 10,000,000 instances of int. Plus other objects.
The chart takes up about 155M.
It does not seem to depend on number y or z values.

We need charts of about 1000 points, and several of those (at least 4).
We tried the surface series, but the situation is similar.
Please advice.

Thank you.

Re: ColorGrid series uses huge amount of memory

Posted: Thu Jan 17, 2013 2:31 pm
by 10050769
Hello natallyk,

I have reviewed your code and first recommendations is that you take a look in next link where explain as you treat correctly the grids when you work with TeeChart controls, because I have realized that you didn't create the grid correctly, so, You must define your grid as a similar way as explain in the link.Could you tell us if using my suggestion your problem persist?

I hope will helps.

Thanks,

Re: ColorGrid series uses huge amount of memory

Posted: Sat Jan 19, 2013 12:05 am
by 15659509
Hi,
Thank you for your reply.
I am not sure was exactly is wrong in the way we treat the grid.
In the explanation which the link points to, the suggestion is:
for x:=0 to 10 do
for z:=0 to 5 do
Series1.AddXYZ(x,random,z);

Well, we had for loop for the z variable as the inner loop. I changed it to be as below. The resulting grid is the same as before - 500x10, which is the idea exactly. (500 columns, 10 rows)
The resulting memory consumption is exactly as in the example I sent before.
The suggestion does not help. Or we misunderstood it.

for(int x = 0; x < 500; x++)
{
for(int z = 0; z < 10; z++)
{
for (int y = 0; y < 50; y++)
{
this.colorGrid1.Add(x, y, z);
}
}
}

Re: ColorGrid series uses huge amount of memory

Posted: Tue Jan 22, 2013 3:19 pm
by 10050769
Hello natallyk,

Ok. We have fixed your problem for next maintenance release. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.


Thanks,

Re: ColorGrid series uses huge amount of memory

Posted: Tue Jan 22, 2013 11:52 pm
by 15659509
Thanks you!
Do you mean it is fixed in an upcoming maintenance release or in one that is already out?
Could we please have ETA in the first case or the release version in the second?

Re: ColorGrid series uses huge amount of memory

Posted: Wed Jan 23, 2013 10:35 am
by 10050769
Hello natallyk,
Do you mean it is fixed in an upcoming maintenance release or in one that is already out?
The problem is fixed for next maintenance release we will be published.
Could we please have ETA in the first case or the release version in the second?
I can't provide you a estimate date when next release will be published. As told you in previous post, I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.