Is it possible to catch a run-time error created by the VM? A search of adv3 reveals some files which catch RuntimeErrors, but I can’t reproduce it. This is what I have tried:
local z = 0, x = 1 / z;
catch (Exception exc)
Running this from the Workbench pops up a “TADS Runtime Error” dialog box that says “division by zero”. Why is the error not caught?
I think you’ll find that while you can catch run-time errors in a compiled version of a TADS 3 game, Workbench will always halt at a run-time error on the basis that it’s probably been caused by a bug you need to know about and want to fix.
Thanks: your answer led me to the “Run-time Error Handling” section of the Workbench Help. I had thought the dialog box meant the game had ended, but actually it is just paused. Pressing F5 continues the game and allows the error to be caught.