|
Forum Index : Microcontroller and PC projects : "Control-C -> Continue" problem
| Author | Message | ||||
| rentner111 Newbie Joined: 18/03/2014 Location: AustriaPosts: 19 |
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 KingdomPosts: 10572 |
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: AustraliaPosts: 3308 |
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. Geoff Geoff Graham - http://geoffg.net |
||||
| bigfix Senior Member Joined: 20/02/2014 Location: AustriaPosts: 129 |
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 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |