×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2006
    Location
    Argentina
    Posts
    24

    J2ME and N8 - pointerPressed, pointerReleased freezes

    Hi all

    I'm having an issue with the N8 on a J2me app implementing the Canvas class: it seems that, when I touch the screen rapidly, the pointerPressed and pointerReleased J2ME event methods never get called, and moreover the application freezes. If I had a thread updating the UI it just stops and no further information is given - I have System.err.println() calls immediately as soon as pointerPressed or pointerReleased are entered, but none sill show.

    Same happens on the Symbian^3 SDK emulator.

    Unfortunately I couldn't get a simple test working - it will just eventually happen, sooner than later (sometimes even at first touch).

    Anyone has come accross this problem and solved it already? Any ideas?

    Thanks
    Mario
    Last edited by mariozorz; 2011-02-06 at 01:30.
    [URL="http://www.prosciuttoproject.org"]The Prosciutto Project[/URL]
    Twitter:[URL="http://twitter/mzorz"]@mzorz[/URL]

  2. #2
    Registered User
    Join Date
    Jan 2006
    Location
    Argentina
    Posts
    24

    Re: J2ME and N8 - pointerPressed, pointerReleased freezes

    Aha!.

    Ok, found a solution to this. As a matter of fact, I was performing lengthy operations in the pointerReleased method call. Only that I never thought this could be such a problem for the Symbian^3 JVM implementation, as it's working just fine on S60 5th edition handsets.

    Nevertheless, what I did is implement and start a thread with the supposedly "heavy" code part, so I could return from the pointerReleased method ASAP.

    It's working like a charm now.

    Hope this helps if you find the same problem!

    Best,
    Mario
    [URL="http://www.prosciuttoproject.org"]The Prosciutto Project[/URL]
    Twitter:[URL="http://twitter/mzorz"]@mzorz[/URL]

Similar Threads

  1. Replies: 5
    Last Post: 2012-03-09, 00:36
  2. The strange pause between pointerPressed and pointerDragged
    By ivanavdeyev in forum Mobile Java General
    Replies: 6
    Last Post: 2010-02-10, 08:30
  3. Replies: 1
    Last Post: 2010-02-09, 18:23
  4. how to debug J2ME program which freezes
    By shahzad73 in forum Mobile Java General
    Replies: 1
    Last Post: 2003-04-29, 15:21
  5. J2ME program freezes up using MMAPI on Win2000
    By walterzcm in forum Mobile Java General
    Replies: 0
    Last Post: 2002-11-21, 05:46

Posting Permissions

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