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 - Bad code fragment, raises an exception without any information.
Summary: Bad code fragment, raises an exception without any information.
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Canvas (show other bugs)
Version: 18.160504
Hardware: PC Windows
: --- normal
Target Milestone: v2017.20
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-26 07:38 EDT by h.hasenack
Modified: 2017-03-17 05:19 EDT (History)
2 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)));