Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor ask_expert's Avatar
    Join Date
    Mar 2003
    Posts
    124
    How to handle multiple SMS operations?
    How to handle coorectly the following situation:
    My app sends and receives SMS messages. When I send one and during an asynchronous call (ESmsMtmCommandScheduleCopy) I receive a message which I want to delete also asynchronously (using CMsvOperationWait), the app crashes with a E32USER-CBase:46 panic code.

  2. #2
    Regular Contributor iswara's Avatar
    Join Date
    Mar 2003
    Posts
    194
    I think this is because the same active object is started on two different tasks simultaneously.

    The deleting can be done synchronously by calling DeleteL() on the parent entry owning the message (e.g. Inbox entry).

    // parent entry id can be read from TMsvEntry
    TMsvId parent = iMtm->Entry().Entry().Parent();

    // switch to parent entry
    iMtm->SwitchCurrentEntryL(parent);

    // delete message from the parent entry
    iMtm->Entry().DeleteL( msgEntryId );

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