×

Discussion Board

Results 1 to 5 of 5

Hybrid View

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    47

    Application crashes on HandleWsEvent

    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 Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Application crashes on HandleWsEvent

    I would suggest getting the panic code for the crash, it would ease the guessing work there a lot.

  3. #3
    Registered User
    Join Date
    Nov 2011
    Posts
    47

    Re: Application crashes on HandleWsEvent

    It is KERN EXEC 3. Another point is that we get this error just on some devices.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Application crashes on HandleWsEvent

    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
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,749

    Re: Application crashes on HandleWsEvent

    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
    Replies: 1
    Last Post: 2009-09-18, 12:09
  3. about HandleWsEvent method
    By raj8nokiaforum in forum Symbian
    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
  •  
×