PicoMite V6.00.02 release candidates - all versions


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11168
Posted: 05:21pm 16 Apr 2025      

  Quote  Is this behaviour normal? Shouldn't the program continue to run anyway if it's called correctly?


I suspect this is the same in all versions of MMbasic (untested). The error in the subroutine causes the firmware to longjmp back to the command prompt but has no way of deleting any local variables. These are normally cleaned up when you RUN  the program. However, you are not running a program, rather, you are just calling the subroutine again from the command line. If you RUN the program you won't get the error.