×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280

    5th edition - Uninstalling an MTM always fails (KErrInUse)

    Hi all,

    Just got my hands on a 5800. I tried installing our custom MTM on it. It mostly works fine. The problem is that uninstalling the MTM is next to impossible. There seems to be some background application that acquires a lock and never releases it. According to my logs an instance of the UI Data module is constructed and never destructed. So when we try to uninstall the MTM (or install a new version), and call CMsvSession::DeInstallMtmGroup() I always get a KErrInUse error.

    It must be something that gets loaded at startup, because if I reboot the phone and try to uninstall the application very quickly after the phone boots up it will sometimes succeed (but not always).

    Does anyone know why this happens? Any workarounds?

    Or alternatively, is there any way to find out which process holds the lock for a specific file (in my case the MTM's .rsc file and also the log file are locked), so I can at least have an idea as to why this is happening?

    Thanks in advance,
    shmoove

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280

    Re: 5th edition - Uninstalling an MTM always fails (KErrInUse)

    I appears this phone has the Messaging task constantly running in the background. I ended it with TApaTask.EndTask() right before calling CMsvSession::DeInstallMtmGroup() (not sooner, because it looks like the task is respawned in less than a second) and was able to uninstall the app properly.

    shmoove

  3. #3
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Dublin
    Posts
    240

    Re: 5th edition - Uninstalling an MTM always fails (KErrInUse)

    Hi,
    How to kill Messaging task? I am not able to uninstall MTM module when gallery is open.
    Thanks
    Datha
    Last edited by datha_k; 2009-04-15 at 18:25.

  4. #4
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Dublin
    Posts
    240

    Re: 5th edition - Uninstalling an MTM always fails (KErrInUse)

    http://www.forum.nokia.com/info/sw.n...ion_Views.html has UID and view id for most of core S60 apps.
    -Datha

  5. #5
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    68

    Re: 5th edition - Uninstalling an MTM always fails (KErrInUse)

    Does any one solve this problem or have some suggestion?


    thanks!

  6. #6
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Dublin
    Posts
    240

    Re: 5th edition - Uninstalling an MTM always fails (KErrInUse)

    You will have to kill Messaging task. You will get view ID from earlier thread.

Similar Threads

  1. Text MTM example not running on 5th edition
    By shafali gupta in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-07-27, 10:49
  2. 5th Edition: TactileFeedback exceptions
    By nicholso in forum Mobile Java General
    Replies: 2
    Last Post: 2008-11-22, 02:26
  3. Who to start UI development in Series 60 5th edition??
    By rohanwaugh in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-11-03, 06:14
  4. MTM registering fails on certain rom versions (s60 3rd)
    By blizzz in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2006-05-22, 16:52

Posting Permissions

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