Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:13 17 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2 - question regarding ON ERROR SKIP

     Page 2 of 2    
Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 10:13pm 13 Feb 2021
Copy link to clipboard 
Print this post

  matherp said  Please download and try b14 should be OK - I hope

What has changed Peter? ie, what did you fix?
Geoff Graham - http://geoffg.net
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10590
Posted: 08:39am 14 Feb 2021
Copy link to clipboard 
Print this post

  Quote  What has changed Peter? ie, what did you fix?


The CMM2 has an optimisation to not execute the setjmp command for errors if ON ERROR is not set. setjmp actually takes quite a lot of processing.

OptionErrorSkip was only decremented if it was already non-zero. But this didn't take into account the ON ERROR command itself which sets OptionErrorSkip to one greater than the value requested as the ON ERROR command itself is included in the countdown. I've now changed ON ERROR to set the exact count rather than one greater.
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025