×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Help needed regarding key events

    Hi ,

    In my canvas based message application, when i click on clear button before typing any characters,my application hangs.

    And also after i have deleted all the characters and again if i click on clear button, application hangs.


    Please help me in finding the solution.

    Tks,

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Help needed regarding key events

    You are creating your own text input screen? My first guess would be: the code is not detecting that the text is empty, and is trying to remove a character. Some exception is being thrown and not handled, and your application gets stuck.

    Cheers,
    Graham.

  3. #3
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: Help needed regarding key events

    might be there is some exception which makes application hang. can u checkout the exception generated there if any.did u check for the condition if clear key pressed when there is nothing to clear? please check the same..
    thanks,
    jitu_goldie..

    KEEP TRYING..

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Help needed regarding key events

    Quote Originally Posted by nagesh.chetana View Post
    Hi ,

    In my canvas based message application, when i click on clear button before typing any characters,my application hangs.

    And also after i have deleted all the characters and again if i click on clear button, application hangs.


    Please help me in finding the solution.

    Tks,
    Hi Nagesh,
    You have to check the length of the SMS,..you have to delete the char if and only if there is at least one char else do not call the code that is actually deleting the char...I must say that there is ArrayIndex OutOFbounds or null pointer exception be thrown and you are not catching the same....juts put the code in a try block.

    check whether this can fix the issue?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Re: Help needed regarding key events

    Thanks to all,

    I was able to resolve the problem, by your guidance.

  6. #6
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Help needed regarding key events

    Hi,
    What was the issue underlined?
    and how you fix the same?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. help needed about key capture
    By wonz in forum Symbian
    Replies: 6
    Last Post: 2007-05-31, 18:04
  2. Detect PTT (Push To Talk) Key Events
    By AlfredoRU in forum Symbian
    Replies: 3
    Last Post: 2006-09-21, 08:06
  3. Handle key events when application is in background
    By dancom in forum Symbian User Interface
    Replies: 5
    Last Post: 2003-08-21, 10:30
  4. Key Event Issues
    By mykes in forum Symbian
    Replies: 0
    Last Post: 2003-05-01, 10:55

Posting Permissions

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