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 1640

Summary: Bad code fragment, raises an exception without any information.
Product: VCL TeeChart Reporter: h.hasenack <hans>
Component: CanvasAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: algonzalez74, yeray
Priority: ---    
Version: 18.160504   
Target Milestone: v2017.20   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description h.hasenack 2016-09-26 07:38:48 EDT
Take a look at procedure TGDIPlusCanvas.RecreateGraphics(const AHandle:HDC);

In case something went wrong creating the GD+ canvas, it checks FGraphics.LastStatus and raises an exception of class Exception in case something went wrong.
Please change this into a more informational exception specialized for TChart, OR (as I did) call raiseLastOSError rather than Raise Exception.Create(IntToStr(Ord(Status)));