Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 397

Summary: [TA05013955] Having a chart with a populated series, exporting it many times (does...
Product: ActiveX TeeChart Reporter: yeray alonso <yeray>
Component: ExportingAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: major    
Priority: High    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2013-11-20 11:43:49 EST
Having a chart with a populated series, exporting it many times (doesn't matter on the format: emf, gif, jpg, pdf,...) it seems that the memory demanded isn't liberated because the memory demanded for the application increases constantly.
This doesn't happen in VCL. And in AX 8004 the memory remains stable at about 10MB.
To run the example, create the folder "C:\tmp\files". And have a Task manager opened to see the memory on demand.
Private Sub Command1_Click()
  For i = 1 To 5000
    TChart1.Export.asMetafile.SaveToFile "C:\tmp\files\" & Trim(Str(i)) & ".emf"
  Next i
  
  MsgBox "Finished!"
End Sub
Private Sub Form_Load()
  TChart1.AddSeries scPoint
  TChart1.Series(0).FillSampleValues 25
End Sub
The forums topic:
http://www.teechart.net/directline/viewtopic.php?f=4&t=158 [created:2009-03-11T11:42:32.000+01:00 reported by:yeray@steema.com reported in version:Version AX8 Release 8005 (TeeChart ActiveX Control)]