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.
Memory management
Memory management
- Attachments
-
- Sample application picture
- sample.png (155.48 KiB) Viewed 4329 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Memory management
Hi Gropious,
Most of the memory allocated by TeeChart is for series data, it's necessary to paint the series and other chart elements accordingly.We figure out that teechart allocates a lot of memory.
When closing a form with a TeeChart object in it, its destructor should do the job.When will the memory be released?
Yes, I'd hope so.- We run teeChart()->Series(m_seriesDCIndex)->Clear(); to reset series data.
Does this release the memory allocated by the teechart component?
Do you have a project we can run "as-is" to reproduce the issue here?- 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.
As I told you before, built-in destructors should free allocated memory.What is the recommended way to cleanup memory allocated by the teechart component?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |