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 762

Summary: ImageExportFormat.save crashes with org.eclipse.swt.SWTException: Graphic is disposed
Product: Java TeeChart Reporter: kahlert <kahlert>
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: blocker CC: kahlert, marc, sandra
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description kahlert 2014-05-08 06:48:22 EDT
Since Version 3.2013.1219,
the code tChart.getExport().getImage().getPNG().save(file);

results in a SWTException:
org.eclipse.swt.SWTException: Graphic is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4397)
	at org.eclipse.swt.SWT.error(SWT.java:4312)
	at org.eclipse.swt.SWT.error(SWT.java:4283)
	at org.eclipse.swt.graphics.Image.getImageData(Image.java:1210)
	at com.steema.teechart.drawing.Image.save(Image.java:88)
	at com.steema.teechart.exports.ImageExportFormat.save(ImageExportFormat.java:100)