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 - Errors when assigning large DateTime values
Summary: Errors when assigning large DateTime values
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: 150901
Hardware: PC Windows
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-19 08:52 EST by LNS
Modified: 2016-02-03 10:41 EST (History)
1 user (show)

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


Attachments
Demo Project (4.92 KB, application/zip)
2016-01-19 08:52 EST, LNS
Details

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