×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    124

    How to handle multiple SMS operations?

    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
    Join Date
    Mar 2003
    Posts
    194

    RE: How to handle multiple SMS operations?

    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
  •  
×