×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    42

    Exclamation Destoring CMsvEntry object

    Hi all

    I have a big content so i try to send multiple sms (by Spliting 160 char) There is no problem in First sms
    after that I cant destroy CMsvEntry* object If my application try to send second msg my emulator quits
    .i got this code from wiki

    http://wiki.forum.nokia.com/index.ph..._Edition_-_MTM


    Code:
    TMsvSelectionOrdering selection;
    	CMsvEntry* parentEntry = CMsvEntry::NewL( iSmsMtm->Session(), KMsvDraftEntryId, selection );
        CleanupStack::PushL( parentEntry );
     
       
        iOperation =parentEntry->MoveL( entry.Id(), KMsvGlobalOutBoxIndexEntryId, iStatus );
     
     //Second time my Emulator Quits when i call this Line 
        CleanupStack::PopAndDestroy( parentEntry );
    by
    jey_

  2. #2
    Super Contributor
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777

    Re: Destoring CMsvEntry object

    Make CMsvEntry* parentEntry as member variable;

    TMsvSelectionOrdering selection;
    if(parentEntry)
    {
    delete parentEntry ;
    parentEntry =NULL;
    }
    parentEntry = CMsvEntry::NewL( iSmsMtm->Session(), KMsvDraftEntryId, selection );
    iOperation =parentEntry->MoveL( entry.Id(), KMsvGlobalOutBoxIndexEntryId, iStatus );
    Regards
    $-Nitesh-$

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    42

    Re: Destoring CMsvEntry object

    Hi Nitesh

    i Did but Still Emulator quits in Last line....
    Code:
    TMsvSelectionOrdering selection;
        if(parentEntry)
        {
        delete parentEntry ;
        parentEntry =NULL;
        }
    	 parentEntry = CMsvEntry::NewL( iSmsMtm->Session(), KMsvDraftEntryId, selection );
      //  CleanupStack::PushL( parentEntry );
     
        // Move message to Outbox.
        iOperation =parentEntry->MoveL( entry.Id(), KMsvGlobalOutBoxIndexEntryId, iStatus );
     
        //CleanupStack::PopAndDestroy( parentEntry );

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Destoring CMsvEntry object

    Hi,

    As far as I have understood there is a pending request made on that object and you are trying to delete it try canceling the request and then call delete on the object.
    Regards,
    Sriky

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Destoring CMsvEntry object

    You may want to get the error message: http://wiki.forum.nokia.com/index.ph...ded_panic_code

  6. #6
    Registered User
    Join Date
    Dec 2008
    Posts
    42

    Re: Destoring CMsvEntry object

    Hi

    Thanks all, I Already extended panic codes.In this case Emulator Quits Immediately i cant show the code In handled it wont Shown any codes application Quits simply ...

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Destoring CMsvEntry object

    You can still check if there is something at the end of the output window of Carbide and/or the logfile (http://wiki.forum.nokia.com/index.php/Epocwind.out)

Similar Threads

  1. Page builder
    By giogiogio in forum Symbian
    Replies: 2
    Last Post: 2007-08-26, 18:08
  2. Help! I cannot destory CMsvEntry object.
    By autumnsea in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2006-10-08, 16:41
  3. CMsvEntry object creation error -46 !
    By navjotsingh1979 in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2006-09-25, 07:56
  4. CMsvEntry object creation error -46 !
    By navjotsingh1979 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-09-23, 19:37

Posting Permissions

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