Just getting back into doing some coding with Lazarus and FP.
Was making a simple app that that calculates a formula, then allows the user to print a report with the chart on it.
Everything seems to be working fine and when a floating point calculation happens that causes and exception it was normally picked up and shown while in the IOE or the compiled application.
As soon as I load a report with something like this
frReport1.LoadFromFile('MySimpleReport.lrf');
The application will no longer show any floating point exceptions, divide by zero, arccos(123.234) etc.
What is interesting is that IF I cause an exception in the application during runtime, they are caught! but this is ONLY UNTIL I call frReports LoadFromFile() then exceptions are masked.
Also it will not catch exception in a try/except block after the report is run.
I suspect the report is setting a mask on exceptions somewhere during runtime.
Any way to reset the exception mask once the report is loaded.
This is on Win 11 with Lazarus 3.0 (let me know what else you might need to know)
I'm a bit rusty so could be something I'm doing, but seems to be an issue with loading a report that is changing the exception handling chain or mask.
Thanks for any help!
Sandy