×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jun 2004
    Posts
    86

    Question why kern exec 3 on CopyFile?

    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 Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144
    have you checked that all folders included in the code also exists in your 6600 target phone ?

    yucca

  3. #3
    Regular Contributor
    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
  •