Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User sani_ok's Avatar
    Join Date
    Nov 2011
    Posts
    47
    Hi, All.

    We have a problem with keyboard events handling. After pressing any key we receive EEventKeyDown in OfferKeyEvent and pass it to HandleWsEvent. Everything is good at that point. Then we receive EEventKey and when we try to pass it to HandleWsEvent app crashes. What can be wrong?

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    I would suggest getting the panic code for the crash, it would ease the guessing work there a lot.

  3. #3
    Registered User sani_ok's Avatar
    Join Date
    Nov 2011
    Posts
    47
    It is KERN EXEC 3. Another point is that we get this error just on some devices.

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    Generally that would be memory violation error.

    So I would suggest then checking what is the last lien called when you get this panic, basically you would probably need to do some file logging to find that out.

    Most often this is caused by using NULL or non-valid pointers, so you could also simple add checks that you do not use NULL pointers, as well as you set all member variables to NULL after you delete them. Also generally checking all returned error codes, and actually reacting to them could often help.

    one very rare case where you would get this is also stack-overrun, so if you suspect it to be cause, you could try increasing the default stack for the process.

  5. #5
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    What do you mean on "passing" a keyboard events to HandleWsEventL? If you do that from a keyboard handler you may have an endless recursion, stopped by a stack overflow (which is also KERN-EXEC 3).

Similar Threads

  1. Replies: 5
    Last Post: 2009-12-16, 10:25
  2. HandleWsEvent problem
    By pb22068 in forum Symbian C++
    Replies: 1
    Last Post: 2009-09-18, 12:09
  3. about HandleWsEvent method
    By raj8nokiaforum in forum Symbian C++
    Replies: 13
    Last Post: 2009-01-19, 13:23
  4. Application crashes on get
    By mahmoudhadad in forum Bluetooth Technology
    Replies: 2
    Last Post: 2008-07-28, 14:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved