ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Regarding memory leakages
Posted by Sai on Nov-16-2012 21:49
How do I prevent memory leakages if its happening in Chart control? Or what kind precaution should I take while using Chart control to avoid memory leakages?

Regards,
Sai

  Re: Regarding memory leakages
Posted by Peter Kwan on Nov-17-2012 02:00
Hi Sai,

I am not aware of any memory leak issues in CChartViewer or in ChartDirector. If you think there is a memory leak, is it possible to create a simple example (eg. by modifying the HelloWorld sample code) that can illustrate the leak?

In ChartDirector, the memory rules are:

(a) If you need to eventually use "delete" to delete a ChartDirector object if and only if you have created object using "new".

(b) If you use DrawArea.text to create a TTFText object, you should call TTFText.destroy to delete it.

(c) MFC objects, like CChartViewer, should be treated just like any other standard MFC object (just like a CStatic object), without any special handling required.

Hope this can help.

Regards
Peter Kwan