10 ON ERROR GOTO 60
20 PRINT 2 / 3
30 PRINT 3 / 5
40 PRINT 4 / 0
45 ERROR 11
46 PRINT "bob"
50 END
60 PRINT ERR, ERL, _ERRORLINE: IF ERR = 11 THEN PRINT "Division by zero in line"; ERL: RESUME NEXT
Here's another bit of oddity: I cant even FORCE QB64 to toss an Error 11. Trying results in Windows popping up the "Critical Error Divison by 0" message box, and closing it insta-crashes the program. ON ERROR isnt catching Divison by 0, even when I try and force it to, though other error codes work just fine for us.
I have no clue how the guy is getting system errors, since it seems like the program is basically just a few PRINT commands, with the other stuff doing nothing in this case.