Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:27 12 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 : "Control-C -> Continue" problem

Author Message
rentner111
Newbie

Joined: 18/03/2014
Location: Austria
Posts: 19
Posted: 06:36pm 02 Oct 2018
Copy link to clipboard 
Print this post

The "CONTINUE" command after a "Contol-C" in the chat window is a very useful command for debugging programs.
Unfortunately, it is only very limited to use.
Up to version V5.2, the "CONTINUE" command still worked correctly after a "Contol-C".
The following small program demonstrates the problem that only starts with version V5.3.
Unfortunately, "continue" does not work correctly even with the newer MM, MM + and MZ versions.
The error only occurs after inserting the subroutine.
------------------------------
THE TEST PROGRAM

DO
PAUSE 500
PRINT "HELLO WORLD"
TEST()
LOOP

SUB TEST ()
FOR i = 1 TO 30
PAUSE 50
NEXT i
END SUB

------------------------------
RESULT

RUN
HELLO WORLD
HELLO WORLD
'CONTOL-C pressed = program stop
> continue
[5] Loop
Error: LOOP without a matching DO
>
----------------------------------

Greetings from TIROL-AUSTRIA
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10572
Posted: 06:51pm 02 Oct 2018
Copy link to clipboard 
Print this post

This is a known issue. The problem occurs when the crtl-c happens when execution is in the subroutine. Geoff is aware.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 09:29am 03 Oct 2018
Copy link to clipboard 
Print this post

Yes, unfortunately as MMBasic has become more sophisticated (subroutines, CFunctions, etc), resuming after a CTRL-C has become more difficult. I have it on my list to fix but the answer might be to remove the CONTINUE command or at least restrict its use (not good).

By the way, greetings to Austria. I was there just a week ago (St Pölten and Vienna) and I loved your wines, particularly Sturm which was completely new to me.

GeoffEdited by Geoffg 2018-10-04
Geoff Graham - http://geoffg.net
 
bigfix
Senior Member

Joined: 20/02/2014
Location: Austria
Posts: 129
Posted: 08:12pm 04 Oct 2018
Copy link to clipboard 
Print this post




Geoff, you should have tried this "Schilcher Sturm"
In my opinion it has much more flavour than the usual types

It is made of a special grape (Blauer Wildbacher) which only grows in a small region in southern Austria

For the NonAustrians:
Sturm is grapejuice which started fermenting and then gets cooled to stop the process, before becoming wine
So it has some alcohol already and a "bubbly" taste

Its a pity I did not know that you were around
I live close to Vienna and would have loved to show you the area

cheers
Guenter
 
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