Page 1 of 1

TeeChart Cleanup

Posted: Mon Sep 28, 2020 12:00 pm
by 15689012
Hello,

we are searching for Memory Leaks in our appllication.
What else can be done to clear the data of a TeeChart Object which should be reused later?
Actually we do

Code: Select all

_maxChart.teeChart.Series.Clear(true);
_maxChart.teeChart.Tools.Clear(true);
Is there more what can be done?

System:
TeeChart Version 4.2020.5.25
IDE: VS2019
Language: C#
Windows 10 Pro 1909

Re: TeeChart Cleanup

Posted: Tue Sep 29, 2020 4:52 am
by 15689012
Any ideas on that?

Re: TeeChart Cleanup

Posted: Wed Sep 30, 2020 10:13 am
by Marc
Hello,

Garbage collection should handle most general objects itself but if you create any other specific items then you could choose to clear them, for example custom axes.

Are you experiencing any memory leaks issues that you think may be related to TeeChart? We can investigate if you consider that to be a possibility.

Regards,
Marc Meumann

Re: TeeChart Cleanup

Posted: Wed Sep 30, 2020 10:57 am
by 15689012
Hello,

yes, we think we are experiencing memory leaks within Custom3DGrid.
That's what it actually looks like in our App.
We will extract that part of code and go into the depth.
I will come back as soon as we have some results.
Thanks for your reply.

Re: TeeChart Cleanup

Posted: Thu Oct 01, 2020 7:06 am
by Christopher
Hello,
HCCKPM_2020 wrote:
Wed Sep 30, 2020 10:57 am
yes, we think we are experiencing memory leaks within Custom3DGrid.
If I'm not mistaken, this Custom3DGrid issue is covered in another thread here.

Re: TeeChart Cleanup

Posted: Thu Oct 01, 2020 7:47 am
by 15689012
Yes, that's right.
In this thread I just asked for the possibility to delete objects in the right way.
After digging more in detail of this problem, I opened the second thread about this memory leak.
Any additional suggestions on how to clear an object?

Re: TeeChart Cleanup

Posted: Thu Oct 01, 2020 11:02 am
by Christopher
HCCKPM_2020 wrote:
Thu Oct 01, 2020 7:47 am
Any additional suggestions on how to clear an object?
As you can read in that thread, it does seem that use of the method Series.Clear() is sufficient.