Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor flicker82's Avatar
    Join Date
    Jun 2004
    Posts
    86
    i have the following code:

    Code:
    TBuf<256> fileNameJpeg;
    fileNameJpeg.Copy(_L("c:\\system\\apps\\myapp\\me.jpg"));
    
    if(BaflUtils::FileExists(iCoeEnv->FsSession(), fileNameJpeg))
             {
    BaflUtils::CopyFile(iCoeEnv->FsSession(), fileNameJpeg, KFileNameBookmarksImagesDirectory);
             }
    this code works fine on emulator, 7650 and 3650 phone. but when i try it on 6600, it gives me kern exec 3, why? when i comment out BaflUtils::CopyFile, there is no kern exec. can anyone help me?

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    have you checked that all folders included in the code also exists in your 6600 target phone ?

    yucca

  3. #3
    Regular Contributor flicker82's Avatar
    Join Date
    Jun 2004
    Posts
    86
    hi symbianyucca!

    i did this to my code, but still get kern exec 3

    Code:
    		
    TBuf<256> fileNameJpeg;
    fileNameJpeg.Copy(_L("c:\\system\\apps\\myapp\\me.jpg"));
    
    if(BaflUtils::FileExists(iCoeEnv->FsSession(), fileNameJpeg))
             {			BaflUtils::EnsurePathExistsL(iCoeEnv->FsSession(), KFileNameBookmarksImagesDirectory);
    BaflUtils::CopyFile(iCoeEnv->FsSession(), fileNameJpeg, KFileNameBookmarksImagesDirectory);
             }
    isnt it that EnsurePathExistsL creates all the folders that doesnt exist in the path?

    im stumped.

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