floating point division by zero 4.9.2

Dec 3, 2014 at 7:24 AM
Hi, i just installed version 4.9.2 on C++Builder and when i put a TMap component on the form i get the error "floating point division by zero" (yes, just when i put, before to compile).
It makes the same thing with version 4.9.1, while version 4.8.8 works fine.
Obviously, suppressing compiler floating point exceptions doesn't work...

Any help is really appreciated...

Thanks
Diego
Developer
Dec 3, 2014 at 4:27 PM
Hi Diego, I guess something similar was already reported: https://mapwingis.codeplex.com/discussions/543477
I haven't studied it myself. We are preparing v4.9.3 beta now, so if there is a way we can fix the problem, please let us know.

Thanks,
Sergei
Developer
Dec 3, 2014 at 6:37 PM
Edited Dec 3, 2014 at 8:12 PM
An update: I reproduced the issue and caught the exception by debugging BCB in VS. Division by zero indeed. Here is a fix: https://mapwingis.codeplex.com/SourceControl/changeset/75271 VS compiler suppresses floating point exceptions by default, while Borland BCB - no. I managed to get it in VS only after setting _controlfp(0, EM_ZERODIVIDE). I'll play around with it in the next days. Probably there are other weak spots.
Dec 4, 2014 at 5:11 PM
Ok Sergei, thank you very much for your time!!!

When do you think v4.9.3 beta will be released?

Thanks
Diego
Developer
Dec 4, 2014 at 7:26 PM
I think somewhere within a week.
Dec 31, 2014 at 10:07 AM
Hi, just tried the last version v4.9.3.1, it works fine!

Thank you and happy new year!

Diego
Marked as answer by devcomm on 12/31/2014 at 3:07 AM