| Reply | « Previous Thread | Next Thread » |
|
Hi,
My code works perfectly on both 3410 phone with firmware v4 and emulator v1.0 but hangs on the phone with firmware v3. I have the following code in MIDlet class: try { canvas = new GameCanvas(); } catch (Exception e) { Display.getDisplay(this).setCurrent(new Alert(e.getMessage())); } GameCanvas was not designed to throw any exception but I had to put it between 'try' and 'catch' to see what's going on. Too see how the message looks like check http://www.instantcom.net/sinisa/strange.jpg Same things happens when using 'e.toString()' instead of 'e.getMessage()'. The GameCanvas class is about 40k and does not have any code in the constructor. I've suspected 40k is too much for v3 to handle so I commented out most of the code to shrink it to under 32k but problem is still there. What could be causing this? Sinisa |
|
Same problem no matter if I use...
Display.getDisplay(this).setCurrent(new Alert("WARNING", "Blah blah", null, AlertType.ERROR)); ...or... Display.getDisplay(this).setCurrent(new Form("Blah blah")); This makes error tracing virtually impossible. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|