Catching Alt-Break in BASIC
|
Hello Is there a way to catch Alt-Break with an ON ERROR clause in BASIC? If not, is there a way to free a file that has not been closed before the alt-break occured? Thank you François |
|
a) No. Alt-break is a last resort and the application / command has no scope to clean up within the desktop. It should only be used as a last resort and you should reboot as soon as you can unless you know that what you have interrupted will not cause problems. If your application needs to be alt-break’d to exit, it is broken and should be fixed, obviously. (and clearly during development that’s likely to happen now and then b) Many tools exist to close files (or sockets, or destroy DAs) that have not been closed before before applications exited.
I don’t think I ever had a Font handle closer, but I’m sure there was one. |