Memory management
Posted: Thu Feb 24, 2011 8:53 am
Hi,
we are using TeeChart Pro ActiveX 8.0 (8.0.1.0) in our native C++ application.
We have 2 teechart components containing fastline series (TeeChart::scFastLine).(See sample picture attached)
We figure out that teechart allocates a lot of memory.
When will the memory be released?
- We run teeChart()->Series(m_seriesDCIndex)->Clear(); to reset series data.
Does this release the memory allocated by the teechart component?
- When deleting the teechart component ( in additon, we use them inside a dialog) it seemed we need to call RemoveAllSeries(); to delete the memory.
Deleting the component seemed not to be enough.
What is the recommended way to cleanup memory allocated by the teechart component?
Thanks for your help or comments.
we are using TeeChart Pro ActiveX 8.0 (8.0.1.0) in our native C++ application.
We have 2 teechart components containing fastline series (TeeChart::scFastLine).(See sample picture attached)
We figure out that teechart allocates a lot of memory.
When will the memory be released?
- We run teeChart()->Series(m_seriesDCIndex)->Clear(); to reset series data.
Does this release the memory allocated by the teechart component?
- When deleting the teechart component ( in additon, we use them inside a dialog) it seemed we need to call RemoveAllSeries(); to delete the memory.
Deleting the component seemed not to be enough.
What is the recommended way to cleanup memory allocated by the teechart component?
Thanks for your help or comments.