I am wondering if there is any way to debug MIDP's
IllegalStateException?
I have a class subclassing Canvas (in turn Displayable). In the constructor of this class, I do:
Command c1 = new Command("CMD1", Command.SCREEN, 0);
Command c2 = new Command("CMD2", Command.SCREEN, 0);
addCommand(c1); -> IllegalStateException
addCommand(c2);
I don't believe this is a MIDP 1.0 vs. 2.0 issue. In general, any effective tips on debugging IllegalStateException?
Thanks
Victor