Discussion Board

Results 1 to 3 of 3

Thread: GameCanvas Bug?

  1. #1
    Registered User
    Join Date
    Mar 2003

    Exclamation GameCanvas Bug?

    I have had trouble running my 2.0 Midlet on actual devices (Nokia 6600 & SE p900). No problem on the emulator as usual.
    When I start the application it immediately quits without any warning. Same behavior on both phone models. So I started to comment out row after row until I finally caught what was producing the problem.

    I am using a GameCanvas class and in that class I had quickly written (this is just a prototype) a method with the footprint like this:
    PHP Code:
    public void update() {
    //Some code having to do with screen update

    As soon as I renamed the method the problem disappeared.

    (It was a silly name for the method from the beginning and it did not need to be public, but at least I learned something I can share )

    Good luck out there!

  2. #2
    Regular Contributor
    Join Date
    Feb 2004

    GameCanvas.update() => crash midlet on nokia6630

    Do you know where to find additionnal info on Nokia/symbian KVM ?

    Yea I confirm this also on 6630 :

    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.lcdui.game.*;
    * Test class
    * nokia 6630 will quit midlet if update is defined in GameCanvas class ? (renamed myupdate it works)
    * http://discussion.forum.nokia.com/fo...653#post134653
    * Crash on Nokia6630 Firmware V 2.39.124 17-10-04 RM-1 (cheat code is : *#0000# )
    public class TestGameCanvasMIDlet extends MIDlet {
    TestGameCanvas canvas_ = new TestGameCanvas(true);
    public void startApp() {
    try {
    } catch (Exception e) { e.printStackTrace(); }
    // notifyDestroyed();
    public void pauseApp() {}
    public void destroyApp(boolean unconditional) {}

    class TestGameCanvas extends GameCanvas {
    TestGameCanvas(boolean suppress) { super(suppress); }
    public void start() { setTitle("} start"); }
    public void updateWorks() { setTitle("} updateWorks"); } // will work
    public void update() { setTitle("} update"); } // BUG HERE nokia 6630

  3. #3
    Registered User
    Join Date
    May 2005

    Re: GameCanvas Bug?

    I confirm the same issue on the 6680

    Franck Calzada
    Mobile Entertainment Studio
    Franck Calzada
    Mobile Entertainment Studio

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts