PicoMite V6.00.02 release candidates - all versions


Author Message
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 558
Posted: 09:19pm 16 Apr 2025      

  matherp said  
  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.


I know :-) But I stumbled across this because I want to call a routine from the "LIBRARY" from the command line and may need to intercept the user input here.
For example, add a direct input to the new "offline help" ... >help "display" ;-)
Unfortunately, I am running into this problem and wonder if and how the error could be intercepted.

Matthias