Crash with nearly identical X values in two TPointSeries
Posted: Wed Nov 20, 2019 12:29 pm
Hello,
we discovered a rare but nasty condition when displaying/painting a chart leads to a crash due to an out of memory error.
It is sufficient to have two point series (or line series) in a chart and to add an X value to one series and and a very similar X value to the other series. Then when the chart is painted the program crashes.
I have a attached a simple program (C++Builder 10.2 Tokyo Update 2) to demonstrate the problem. When the button is pressed the program crashes. Please note that the second X value has to be calculated from the input value, otherwise the X values are identical and the error does not occur.
We are using version 2017.23 in our productive system but the crash also occurs with 2019.28.
Please let us know if there is a fix for the problem. As we have the source code version we could also use a source code fix.
Regards
Hans
we discovered a rare but nasty condition when displaying/painting a chart leads to a crash due to an out of memory error.
It is sufficient to have two point series (or line series) in a chart and to add an X value to one series and and a very similar X value to the other series. Then when the chart is painted the program crashes.
I have a attached a simple program (C++Builder 10.2 Tokyo Update 2) to demonstrate the problem. When the button is pressed the program crashes. Please note that the second X value has to be calculated from the input value, otherwise the X values are identical and the error does not occur.
We are using version 2017.23 in our productive system but the crash also occurs with 2019.28.
Please let us know if there is a fix for the problem. As we have the source code version we could also use a source code fix.
Regards
Hans