Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User kalnyc1's Avatar
    Join Date
    Sep 2008
    Posts
    8
    Hi,

    This may be a silly question, but here goes.

    I have searched and found no answer, so, where (directory) can my application place a log file that I can view without having to deal with all the security issues.

    Can my application write a log file to the "C:\" directory, and am I able to view it using something like Y-Xplore? The security capability aspect of the OS makes it so frustrating to test and develop on.

    Thanks in advance.

    Kal

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    C:\Data and E:\ are perfect locations, you can see them from the built-in File Manager too (it shows c:\Data as "Phone Memory" root)

  3. #3
    Registered User kalnyc1's Avatar
    Join Date
    Sep 2008
    Posts
    8
    Thanks. I will give it a try.

  4. #4
    Registered User kalnyc1's Avatar
    Join Date
    Sep 2008
    Posts
    8
    Doesn't seem to be working. I am only guessing, but perhaps my application cannot write to the C:\Data directory.

    I can only guess, because I'm developing blindly here, I cannot see anything, no permissions!!.

    It works fine in the emulator, though

  5. #5
    Registered User yogpan's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043
    Hi,
    Try adding capability ReadUserData WriteUserData in your mmp and then check if it is writing in the log file or not.
    Maximus
    S60 Developer
    Impossible is nothing

  6. #6
    Registered User yogpan's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043
    You need not worry about special signing also since these capabilities are user defined capabilities so you can self sign your application also.
    Maximus
    S60 Developer
    Impossible is nothing

  7. #7
    Registered User kalnyc1's Avatar
    Join Date
    Sep 2008
    Posts
    8
    I am using Open Signed Online and I "Select All" capabilities. I tried adding ReadUserData WriteUserData in my mmp, no success.

    Kal

  8. #8
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    If you learn about data caging, you will see that any application can write into c:\Data.
    And Read/WriteUserData has nothing to do with file access anyway.
    You should check how you are trying to open/create the log file. Show some code perhaps.

  9. #9
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    Quote Originally Posted by yogpan View Post
    Hi,
    Try adding capability ReadUserData WriteUserData in your mmp and then check if it is writing in the log file or not.
    You got to love this "add capability X and Y" approach. Of course at some point you run out of capabilities (it seems kalnyc1 already did) and then what? Use a bigger hammer?!

Similar Threads

  1. Replies: 1
    Last Post: 2008-05-08, 12:32
  2. i am missing some files in FTP Application.
    By Tanya in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-02-23, 08:54
  3. Can a PC suite application visit all the files of phone?
    By inter_fan in forum PC Suite API and PC Connectivity SDK
    Replies: 4
    Last Post: 2007-08-10, 18:12
  4. when log file overflow, app starts corrupting database files
    By mamatha_mallesh in forum Symbian C++
    Replies: 0
    Last Post: 2005-01-18, 10:02

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