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 1409

Summary: Errors when assigning large DateTime values
Product: VCL TeeChart Reporter: LNS <linus.hogrebe>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: major CC: sandra
Priority: Normal    
Version: 150901   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Demo Project

Description LNS 2016-01-19 08:52:54 EST
Created attachment 537 [details]
Demo Project

We frequently get various errors and exceptions related to axis scaling and labelling when in Axis.DateTime mode and adding values that go beyond the valid DateTime range.

While we can of course validate the values before adding them to TChart (and this is what we'll do as an immediate solution), I feel that this issue should be handled adequately inside TChart without throwing unhandled exceptions, e.g. by clamping the values to [minDateTime..maxDateTime].

I have attached a simple demo project (Delphi XE5) that we extracted from a situation where we encountered such an error (in this case: integer overflow). You should face the error directly after loading the project.

Thanks,
Linus