Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User mobi1's Avatar
    Join Date
    Nov 2006
    Posts
    50
    CMsvSession:: DeInstallMtmGroup() gives KErrInUse on Nokia 5800 although it works fine on 3rd edition devices.

    Any advice?

    Thanks

  2. #2
    Nokia Developer Champion Nitesh Bhardwaj's Avatar
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777
    Some time back, i have also faced the problem(different from this) with Custom MTM in 5th devices, at that time expert said "may be its an issue with newer version".

    so how did you manage to deinstall it, can you show the code.

  3. #3
    Registered User mobi1's Avatar
    Join Date
    Nov 2006
    Posts
    50
    CMsvSession* session = CMsvSession::OpenSyncL(ob);
    ClearMessageEntriesL(*session);
    TInt err=session->DeInstallMtmGroup(filename);

  4. #4
    Super Contributor shafali gupta's Avatar
    Join Date
    Nov 2004
    Posts
    1,009
    Chk the thread below:
    This is a known problemhttp://www.forum.nokia.com/forum/showthread.php?t=160005

    http://wiki.forum.nokia.com/index.ph...e_in_use_error
    Regards,
    Shafali

  5. #5
    Registered User mobi1's Avatar
    Join Date
    Nov 2006
    Posts
    50
    Does that mean it is not solvable problem?

  6. #6
    Nokia Developer Champion Nitesh Bhardwaj's Avatar
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777
    Quote Originally Posted by mobi1 View Post
    Does that mean it is not solvable problem?
    i am not sure, but you can try following things:

    1: Get the entry root by CMsvEntry *entryRoot = session->GetEntryL( KMsvRootIndexEntryId);
    2: get all the folder assosiated with your MTM like,
    CMsvEntrySelection* folderEntrySelection = entryRoot->ChildrenWithTypeL(KUidMsvServiceEntry);
    3: get its entry value by this,
    TInt index = folderEntrySelection->Count()

    CMsvEntry* entry = session->GetEntryL( folderEntrySelection->At( index) );
    CMsvStore* store=entry->ReadStoreL();
    4: and now remove all the folder with this entry,
    CMsvEntry:: DeleteL();
    5: then call TInt err = session->DeInstallMtmGroup(_("yourmtm");

    hope it will help you,

  7. #7
    Registered User mobi1's Avatar
    Join Date
    Nov 2006
    Posts
    50
    I wrote the code as follows:
    CMsvEntry* entryRoot = aSession.GetEntryL(KMsvRootIndexEntryId);
    CleanupStack::PushL(entryRoot);
    CMsvEntrySelection* folderEntrySelection = entryRoot->ChildrenWithTypeL(
    KUidMsvServiceEntry);
    CleanupStack::PushL(folderEntrySelection);
    //TInt index = folderEntrySelection->Count();
    for(TInt i=0; i<folderEntrySelection->Count(); i++)
    {
    //CMsvEntry* entry = aSession.GetEntryL(folderEntrySelection->At(i));
    //CMsvStore* store = entry->ReadStoreL();
    entryRoot->DeleteL(folderEntrySelection->At(i));
    }
    CleanupStack::PopAndDestroy(folderEntrySelection);
    CleanupStack::PopAndDestroy(entryRoot);

    and I get error -21

  8. #8
    Registered User mobi1's Avatar
    Join Date
    Nov 2006
    Posts
    50
    Can any one help in this?

  9. #9
    Regular Contributor beltry's Avatar
    Join Date
    Nov 2005
    Posts
    131
    You may try to close the Messaging application: on 5th edition, although you don't see it running among the applications, it has the process running in background.
    Just my two cents.

  10. #10
    Registered User mobi1's Avatar
    Join Date
    Nov 2006
    Posts
    50
    It seems to be the only solution

    Thanks any way

Similar Threads

  1. s60 5th edition MTM example not available
    By shafali gupta in forum Symbian C++
    Replies: 18
    Last Post: 2011-01-04, 18:43
  2. Unable to restore application in certain S60v5 software
    By sunnyhk in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2010-06-10, 18:07
  3. Replies: 3
    Last Post: 2008-01-10, 06:31
  4. Problem installing MTM
    By LMVERB in forum Symbian C++
    Replies: 1
    Last Post: 2005-09-14, 04:58

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