Post Reply 
Prime G2 crashes with break command
09-02-2019, 04:21 PM
Post: #6
RE: Prime G2 crashes with break command
(09-02-2019 03:41 PM)BartDB Wrote:  Hi,

I have had the emulator crash too.

At first all seemed fine, then I had entered a formula on the Home screen.

With the formula and result still on the Home screen,
go to Program, run Demo_BREAK, it executes fine
when trying to change back to Home the emulator hangs.
(similar with functions on the CAS screen, if doing something else after running the program, emulator soon hangs).

So definitely something bad there, that has probably always been there but now precipitating with the new G2 hardware.

Steve

Regards
-Bart

Thanks for the reply Bart,

I'm beginning to suspect that the G2 just doesn't like the BREAK command. I have managed to stop the calculator crashing in the demo program by adding an extra IFERR block.
Code:

#pragma mode( separator(.,;) integer(h32) )
EXPORT Demo_BREAK()
BEGIN
FOR A FROM 1 TO 10 DO
  B:= (A+3) MOD 5;
  IF B==1 THEN 
    MSGBOX("END");
    IFERR BREAK;
 THEN END;
    MSGBOX("A "+A+ " B "+B);
    BREAK;
  END;
END;
END;
However I'd be reluctant to do this in a complicated program.

Question now is it just my G2 or is it a general problem?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Prime G2 crashes with break command - sc99cs - 09-02-2019 04:21 PM



User(s) browsing this thread: 1 Guest(s)