-
Hi Roar,
had a bit of time & looked at your source. I'm not really a Java programmer (my poison of choice is Perl), so please don't laugh if I got this wrong. But I think that mode/sys/exit always calls
public void trim() {
short [] prog2 = new short[progSize];
System.arraycopy(prog[currentProg],0,prog2,0,progSize);
prog[currentProg] = prog2;
}...
2009-06-14 21:00:11 UTC in MIDP Calculator
-
Hi Roar,
my experiment protocol:
- start
- mode/sys/reset OK >> program closes
- start >> setup process starts, stack empty
- 42 enter mode/sys/exit >> null pointer exception
- start >> the number 42 is on the stack
- mode/sys/exit >> null pointer exception
- start >> the number 42 is still on the stack
- create a function "f3" that does nothing
- moode/sys/exit >>...
2009-06-12 06:42:51 UTC in MIDP Calculator
-
Found another thing: my point 2. in my previous comment is incorrect. The error ALWAYS appears if no program is defined. If a program is defined, it won't appear.
(Reason for my incorrect analysis: previously I thought it would be the first time because in order to create a state to save, I created a program.)
2009-06-10 20:13:47 UTC in MIDP Calculator
-
Found two more things:
1. The error is a "Null Pointer java/lang/NullPointer Exception"
2. This error only comes the first time that mode/sys/exit is used after installing or after a reset. From the second time onwards, calc works fine.
2009-06-10 20:10:01 UTC in MIDP Calculator
-
On my Nokia 6300, calc does not save its state when the hangup button is pressed.
The second possibility, "mode/sys/exit", gives a "program error" and nothing is saved either.
2009-06-10 20:01:42 UTC in MIDP Calculator