I have a Windows desktop app on Xojo 2025v1.1 and it connects to one or more serial (usb) devices. All works fine until I test the scenario when a device is being used by another app.
The Try..Catch doesn’t pick up the exception at all as in the screenshot below. I initially had Catch e as IOException then modified it to simply Catch but still doesn’t pick it up. This is even there’s a clearly listed IOException in the IDE.
Any ideas please, surely it should catch any exceptions? Thanks
The screenshot shows the location where the error occurs at the moment the error occurs.
If you then proceed a step further in the debugger, your exception handling should be triggered.