×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Aug 2007
    Posts
    105

    Problem with PowerMgmt Capability

    Hi all,

    I'd like to use TApaTask::EndTask() to quit another Program. I've added PowerMgmt Capability and OpenSigned the app, but when I try to run it, it quits with the error

    Standby Mode: Unable to execute file for security reasons.

    What am I doing wrong?

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Problem with PowerMgmt Capability

    Run the application in the emulator and see if epocwind.out gives you any clues. Also, make sure that the capability change was indeed propagated to your binary: elftran -dump s <your>.exe

    Also, are you using a DLL which doesn't have the PowerMgmt capability?
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Regular Contributor
    Join Date
    Aug 2007
    Posts
    105

    Re: Problem with PowerMgmt Capability

    Quote Originally Posted by ltomuta View Post

    Also, are you using a DLL which doesn't have the PowerMgmt capability?
    Thats it! Thanks for the info, didn't know that this constellation does not work...

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: Problem with PowerMgmt Capability

    Yes, a process can only load a DLL which has the same, or greater capabilities than it does. This is one of the basic PlatSec rules, otherwise code in DLLs could get to run with greater privilege than it's supposed to. This is because it's the process that is granted the capabilities at run-time - the DLL just contains some code that the process runs.

    Sorcery

  5. #5
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Problem with PowerMgmt Capability

    Hi,
    Platform security is one of the topics in 3rd edition which has caused lot of confusion to the developers related with what capabilities to be used and how exactly it all relates with the platform and application in general. There is a very good technical documentation on this
    http://developer.symbian.com/main/do...l_overview.pdf
    I hope it will clear lot of concepts about Platform security
    Maximus
    S60 Developer
    Impossible is nothing

Similar Threads

  1. DevCert of capability problem
    By yql in forum Symbian
    Replies: 7
    Last Post: 2007-10-25, 13:55
  2. Capability problem
    By vinayakak in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 5
    Last Post: 2007-08-17, 06:46
  3. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  4. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  5. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

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