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
Crash with nearly identical X values in two TPointSeries
Crash with nearly identical X values in two TPointSeries
- Attachments
-
- OutOfMemory.zip
- (8.15 KiB) Downloaded 910 times
Re: Crash with nearly identical X values in two TPointSeries
Hello Hans,
Your test app crashes when run as you expected. We're looking to see what may be the cause; nothing obvious yet.
Regards,
Marc Meumann
Your test app crashes when run as you expected. We're looking to see what may be the cause; nothing obvious yet.
Regards,
Marc Meumann
Steema Support
Re: Crash with nearly identical X values in two TPointSeries
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Crash with nearly identical X values in two TPointSeries
Hello Yeray,
the proposed fix solves the problem. There seems to be no regression introduced by the fix.
Thank you very much for the fast support!
Regards
Hans
the proposed fix solves the problem. There seems to be no regression introduced by the fix.
Thank you very much for the fast support!
Regards
Hans
Re: Crash with nearly identical X values in two TPointSeries
Hello,
I'm merging the changes to the base code and closing the ticket.
Thanks for the feedback, Hans.
I'm merging the changes to the base code and closing the ticket.
Thanks for the feedback, Hans.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |