×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    197

    Smile What is going on with messaging?

    Hi guys,

    I need to move a new message to a new folder.
    Before I move it, I need to set to new arrived message to read-message,
    but doing so leads to crash of my app.
    What I did is as follows:
    //=============== inside HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3)=======
    case EMsvEntriesChanged:
    {
    //some code is omitted here

    CMsvEntry* msgContextEntry = iSession->GetEntryL(iNewMessageId);
    CleanupStack::PushL(msgContextEntry);

    TMsvEntry entry = msgContextEntry->Entry();

    if( !entry.Complete() || entry.iMtm != KUidMsgTypeSMS )//not sms or not complete,then return
    {
    return;
    }

    if (entry.Unread())//未读则设为已读状态
    {
    entry.SetInPreparation(EFalse);
    entry.SetNew(EFalse);
    entry.SetUnread(EFalse);
    msgContextEntry->ChangeL(entry); //the problem is here, this line leads to crash
    //I don'k know why,and I searched this forum,
    //the code shown here is said to work very well, but why not now??
    //can any one help???

    }
    CleanupStack::PopAndDestroy(msgContextEntry);

    MoveMsgToNewFolderL( iNewMessageId,iNewFolderId );//if I did not set the new message to read-message,
    //the move action also leads to error, error code
    //is 4209580(event EMsvGeneralError occurs,and aArg1
    //contains the error code 4209580.
    //move action is taken by call to CMsvEntry::MoveL(TMsvId aMsvId, TMsvId aTargetId)
    //can any one help again? thank you very much.

    //some code is omitted here
    }

    //=====================================


    What is going on with messaging?

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

    Re: What is going on with messaging?

    it should crash earlier already, since you can return from the function, while leaving stuff into cleanup stack, so go a bit through your code, and amke sure all cleanup stack is handled correctly first, then do check what the actual crash code is: http://wiki.forum.nokia.com/index.ph...ded_panic_code

  3. #3
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    197

    Smile Re: What is going on with messaging?

    Quote Originally Posted by symbianyucca View Post
    it should crash earlier already, since you can return from the function, while leaving stuff into cleanup stack, so go a bit through your code, and amke sure all cleanup stack is handled correctly first, then do check what the actual crash code is: http://wiki.forum.nokia.com/index.ph...ded_panic_code

    Thank you very much.

    You have been helping and been helpful,
    could you be more helpful?

    I need help!!

    Any help from any guy is really helpful and appreciated.
    Hey guys,come on!

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

    Re: What is going on with messaging?

    You could help me on being more helpful by answering the questions I'm making, I'm not just asking for fun of it, but to get more information on the prolem that could potentially help on solving the underlying problem.

  5. #5
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    197

    Smile Re: What is going on with messaging?

    Quote Originally Posted by symbianyucca View Post
    You could help me on being more helpful by answering the questions I'm making, I'm not just asking for fun of it, but to get more information on the prolem that could potentially help on solving the underlying problem.
    Anyway, I thank you,really. You've been helping from yesterday.

    I need more help.

  6. #6
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    197

    Smile Re: What is going on with messaging?

    Finally,I found the reason, it is the capabilities of my app that causes those problems I met.

    Thank those guys who have been helping.

    Thank you.

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

    Re: What is going on with messaging?

    Good to hear, but in future, when somebody asks you questions, you should really answer, othervise you are making it so much harder to anybody to help you, and often people start ignoring threads that are not providing the necessary information needed for solving the problem.

Similar Threads

  1. Smart Messaging in Edition 3&5 devices?
    By MitchD in forum General Messaging
    Replies: 0
    Last Post: 2009-07-15, 11:35
  2. What is the Difference b/w messaging & restricted messageing API's
    By jackofall in forum Mobile Java General
    Replies: 1
    Last Post: 2009-04-27, 05:03
  3. How to find messaging app or MTM capabilities?
    By peter27roberts in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-10-06, 15:43
  4. Replies: 1
    Last Post: 2002-07-02, 13:13
  5. Replies: 1
    Last Post: 2002-07-02, 13:09

Posting Permissions

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