Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2007

    App Exit without Capability

    Hello everyone,

    I just have a little question about an application leaving when it hasnt the right capabilities to do something.

    I have an application where data files are written to my private app folder, which works without capabilities.

    For this i am useing the replace() function.

    Now i had a little problem when i messed up the path for the file so the path was not a valid path.

    some devices returned an error value for not being a valid path and some device s didnt return a value since the app failed the capability check and the app would just exit

    So my question now:
    Is there a way to trap a leave that occource for not having the right capabilities?

    i tried to trap the replace function but the application would still just exit.

    Its not that this is a big deal since i fixed the path messup but in general i am curious if i can prevent my application from exiting when it doesnt have the needed capabilities.

  2. #2
    Super Contributor
    Join Date
    Mar 2004

    Re: App Exit without Capability

    yes, i also notices same thing that some functions just Close the Application with out giving any leave code so can't be traped.

    But i also noticed that some times If you Trap the the Function in which you call the Leaving Function, i am able to tap the leave code.

  3. #3
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Tampere, Finland

    Re: App Exit without Capability

    Leaving methods are marked by their name ending in "L" ... e.g. ConstructL. A method not having this mark in the name will (should) not leave and as such it cannot be trapped.

    RFs::Replace should return an error code (KErrPermissionDenied) which must be properly handled. This of course unless it panics your app but I do not think this is the case.

Similar Threads

  1. 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
  2. symbian signed testing problem.
    By anglina in forum Symbian
    Replies: 0
    Last Post: 2007-02-01, 10:15
  3. embedded app crashes on exit();
    By giridharn in forum Symbian
    Replies: 1
    Last Post: 2006-11-15, 10:17
  4. N70 Reset bug
    By sebboB in forum General Development Questions
    Replies: 2
    Last Post: 2005-12-28, 23:09
  5. Standalone App Exit?
    By maym in forum Symbian
    Replies: 2
    Last Post: 2005-08-09, 00: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