×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    May 2007
    Posts
    50

    Capabilities required by custom DLL

    How to find what minimum capabilities a custom dll requires?

  2. #2
    Regular Contributor
    Join Date
    May 2007
    Posts
    463

    Re: Capabilities required by custom DLL

    The capabilities needed are the union of the capabilities of all the executables that need to use the DLL.

    If only one executable uses the DLL, then that's easy, it's just the capabilities that executable has.

    Lets say two executables need to use it:

    exe1 has ReadUserData, ReadDeviceData, NetworkServices and LocalServices.
    exe2 has NetworkControl, ReadUserData and WriteUserData.

    The dll would need the union, which is ReadUserData, WriteUserData, NetworkServices, LocalServices, NetworkControl and ReadDeviceData.


    If you're writing a DLL for unknown clients (a general purpose client library) then you simply give it as many capabilities as you are capable of granting it. Typically the User Grantable capability set for freeware or the SS grantable capability set if you plan to have it signed.
    Get Resolvr - The Zeroconf framework for Symbian OS free today. Make your IP networking applications fun and easy to use. http://www.novelinteractions.com/resolvr/
    Proud to be the only autorickshaw owner in Cambridge - http://blog.novelinteractions.com/images/tuktuk.jpg

  3. #3
    Regular Contributor
    Join Date
    May 2007
    Posts
    50

    Re: Capabilities required by custom DLL

    Quote Originally Posted by cdavies-nokia
    The capabilities needed are the union of the capabilities of all the executables that need to use the DLL.

    If only one executable uses the DLL, then that's easy, it's just the capabilities that executable has.
    Ok, so how to determine what minimum capabilities are required by the exe??
    Thanks.


    I've ported a 2nd edition application to 3rd ed. Created and signed the sis. Sis installs properly on device but when applicatoin icon is clicked. Nothing happens. I suspect capabilites must be the issue. How to debug this situation?
    Last edited by chand81; 2007-06-09 at 12:48.

  4. #4
    Super Contributor
    Join Date
    Nov 2005
    Location
    London
    Posts
    584

    Re: Capabilities required by custom DLL

    If you can, run it on the emulator first. Configure the debug logging for platsec capabilities (in epoc.ini in the \epoc32\data) so it logs platsec errors in epocwnd.out. More details can be found here: http://www.symbian.com/developer/tec...dini%2eplatsec

  5. #5
    Regular Contributor
    Join Date
    May 2007
    Posts
    50

    Re: Capabilities required by custom DLL

    The emulator doesnt log any platsec errors if both dll & exe mmp's have capabilities set to none. However if I change dll capabilities to ReadUserData WriteUserData, then the emulator indicates that the exe requires those capabilities. So, we come back to the same question - how to find what minimum capabilities are required by a custom dll?

    Anyway, I got the project working on device. The issue was that epocheapsize had to be removed from the mmp. Also epocstacksize in mmp should not exceed 80kb (0x14000) otherwise the exe fails to load on device.

    Thanks.

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. Updated list of required capabilities for API's?
    By mayur_24 in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 9
    Last Post: 2008-05-13, 13:30
  3. S60 2nd to 3rd/ PlatformSecurity / Capabilities
    By jarkoos in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2007-04-14, 14:08
  4. Problem with Cabride.c++ v1.1
    By markovuksanovic in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2007-01-24, 20:05
  5. dll capabilities in Symbian 9.1
    By SamoylovBoris in forum Symbian
    Replies: 10
    Last Post: 2006-10-11, 07:28

Posting Permissions

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