LucaMs Expert Licensed User Longtime User Jan 31, 2022 #1 Running a project containing bug(s), in debug mode it logs the error and crashes. If you run it in release mode (of course even if you run the jar) no crashes happens. (I'm attaching a test project. Press on button "Error" and then on button "Toast"). Two questions: is this a design choice? (I believe that any sw for Windows - and other OSs - would crash if it contained a "serious" bug); is this due to the Resumables? Attachments BugTest.zip BugTest.zip 2.2 KB · Views: 507
Running a project containing bug(s), in debug mode it logs the error and crashes. If you run it in release mode (of course even if you run the jar) no crashes happens. (I'm attaching a test project. Press on button "Error" and then on button "Toast"). Two questions: is this a design choice? (I believe that any sw for Windows - and other OSs - would crash if it contained a "serious" bug); is this due to the Resumables?
LucaMs Expert Licensed User Longtime User Jan 31, 2022 #21 But shouldn't the behavior be the same even in debug mode, even though it depends on JavaFX? Upvote 0
agraham Expert Licensed User Longtime User Jan 31, 2022 #22 It's more complicated than just "RunLater swallows the exception" as contrary to my expectations a try...catch round the code in a Resumable Sub DOES catch the exception and enable recovery from it. Could something be added to the compiled code to at least notify that a problem has happened? Upvote 0
It's more complicated than just "RunLater swallows the exception" as contrary to my expectations a try...catch round the code in a Resumable Sub DOES catch the exception and enable recovery from it. Could something be added to the compiled code to at least notify that a problem has happened?
Erel B4X founder Staff member Licensed User Longtime User Jan 31, 2022 #23 LucaMs said: But shouldn't the behavior be the same even in debug mode, even though it depends on JavaFX? Click to expand... The debugger does catch the error at some point. In release mode it doesn't add any additional try / catch blocks. agraham said: Could something be added to the compiled code to at least notify that a problem has happened? Click to expand... It should might be possible. I need to check it, to make sure that it doesn't have other side effects. Upvote 0
LucaMs said: But shouldn't the behavior be the same even in debug mode, even though it depends on JavaFX? Click to expand... The debugger does catch the error at some point. In release mode it doesn't add any additional try / catch blocks. agraham said: Could something be added to the compiled code to at least notify that a problem has happened? Click to expand... It should might be possible. I need to check it, to make sure that it doesn't have other side effects.