Thank you all for the suggestions.
At this point I've (only) changed the MSVC compiler floating point model option from
/fp:precise to
/fp:strict and that one muted the exceptions. Not sure the problem is solved - it is a lot of code and it needs exhaustive testing. I suspect I can hit the curbs at many other places, not only the fp. That fp issue just popped-up instantly.
*snip*
If you are not compiling for 32 bit i386 Windows, I need a small example.
If you are, I will post that example.
Oops, sorry for not giving more details about.
It is a 32 bit application.
The MSVC compiler is rather old: Microsoft Visual C++ 2008.
Lazarus 1.9.0 r63034 FPC 3.1.1 i386-win32-win32/win64.
The original application was built using C++Builder 5.0 Build 12.34. C++Builder capacity was outgrown long time ago.
Now I desperately need a new means of handling the GUI and I'm putting the non-gui part into a DLL.
What about compiling the DLL with TDM-GCC32 for example? Will it be better?