×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    7

    FullCanvas Crash

    I'm programming a small game and it works fine with the normal canvas.
    Now I use FullCanvas and the program crashes on series 40 emulator, but without an error and at random times.
    It is a small program which does the same every loop, but it always crashes with FullCanvas after a certain time.
    I've removed the commands and the call of setCommandListener
    and now i don't know what to do.

    Does anyone know the reason?

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    7
    I've solved the problem. It was a thread problem:

    Each tick I had the following code:


    Thread.currentThread().yield();

    try
    {
    Thread.currentThread().sleep(1);
    }
    catch(Exception e)
    {
    }

    // do something and draw


    I've changed the sleep(1) to sleep(10) and now it works fine on all emulators...
    But if anyone can explain that it would be fine

Posting Permissions

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