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 1122

Summary: GDI canvas throws a runtime error after exports a chart as image.
Product: ActiveX TeeChart Reporter: sandra pazos <sandra>
Component: OthersAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: marc, mihaivirag
Priority: High    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=1&t=15407&p=68397#p68397
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description sandra pazos 2015-02-05 11:47:53 EST
GDI canvas throws a runtime error after exports a chart as image. Use the code below to reproduce the problem: 
Private Sub Command1_Click()
TChart1.Export.asJPEG.SaveToFile (App.Path & "\DBBar.jpeg")
End Sub
Private Sub Form_Load()
TChart1.Aspect.GDIPlus.Active = False
TChart1.AddSeries scLine
TChart1.Series(0).FillSampleValues
End Sub
The problem is reproducible in the Visual Basic. In the Japanese machine the problem occurs only when is used the executable. The exportation process works fine with GDIPlus canvas.
Comment 1 marc meumann 2015-03-13 08:36:03 EDT
Fix implemented affecting free up of GDIPlus elements.