×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    59

    about file cache

    I am programming on the symbian platform and need to access a SD card with file system operations, like open file / read file / write file. there is a CPU IC resided in the SD card, so i have to transfer commands with read & write sets. The problem is that there is default caching mechanism in the OS, so whenever i write something into the card, the OS will cache the 'something' written just now. I need to turn off caching so that access the card physically and read the feedback by the CPU IC. is there anybody who encountered similar problems?
    cache means:
    when i write text 'x' into file A, OS will take as default that the content of A is 'x'; next time when i read file A, OS will feedback the 'x' directly instead of accessing the disk - this is what i refer to as 'caching'.

    What i want to achieve is to bypass this caching mechanism, namely, when i read the file A, OS will access the disk instead of reading the default 'x' from system cache.

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: about file cache

    From Java: Not a chance. You only have JSR-75/FileConnection API access, and it shields you from the native operating system Java is hosted on, as well as the native drivers and the actual hardware.

    Actually, I suspect you can't even do it on a Symbian phone with native Symbian apps (i.e., even if you step out of the Java sandbox environment).

  3. #3
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    59

    Re: about file cache

    Quote Originally Posted by petrib View Post
    From Java: Not a chance. You only have JSR-75/FileConnection API access, and it shields you from the native operating system Java is hosted on, as well as the native drivers and the actual hardware.

    Actually, I suspect you can't even do it on a Symbian phone with native Symbian apps (i.e., even if you step out of the Java sandbox environment).
    thanks, i also think it maybe impossbile.

Similar Threads

  1. Error : Cannot find file : for DUMMIES
    By PACALA_BA in forum Symbian
    Replies: 7
    Last Post: 2008-07-06, 13:18
  2. Problem with pyobfuscate
    By JOM in forum Symbian
    Replies: 3
    Last Post: 2008-06-20, 22:47
  3. Problem opening file from a dynamic path
    By didienGanteng in forum Symbian
    Replies: 12
    Last Post: 2007-06-27, 11:13
  4. Contacts fields order??
    By timatima in forum Symbian
    Replies: 1
    Last Post: 2007-06-08, 13:51
  5. How to create mbm file?
    By qt_raip in forum Symbian Tools & SDKs
    Replies: 13
    Last Post: 2004-05-12, 11:07

Posting Permissions

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