:( debug problem about file session path

Login to reply to this topic.
Fri, 2008-03-21 07:16
Joined: 2008-03-18
Forum posts: 20

Hi,
I have a strange problem when i debug a app about file operation.

        RFs fs;
        User::LeaveIfError(fs.Connect());
        CleanupClosePushL(fs);
        TFileName fullPath;
        fullPath = iEikonEnv->EikAppUi()->Application()->AppFullName();
        TParse parse;
        parse.Set( fullPath,NULL,NULL );
        fullPath.Copy(parse.DriveAndPath());
        User::LeaveIfError(fs.SetSessionPath(fullPath)); // set a path for  app
        RFile file;
        _LIT(KFileName,"login.dat");
        User::LeaveIfError(file.Replace(fs, KFileName, EFileWrite|EFileStream ));
        CleanupClosePushL(file);
        _LIT8(KNone,"hello nokia !");
        file.Write(KNone);
        TInt filesize;
        file.Size(filesize);
        CleanupStack::PopAndDestroy(2); //file and fs

------------------------------------------------------------------
i parse the app fullpath and set it for my following session, in this case the fullPath is value is "z:\\system\\apps\HELLOWORLDPLUS\\" . Yet when i create a file in this path , it doesn't work !
When i delete the action of setsessionpath, i found the default session path is "c:\\",
and the creation can be successful !
I doubt that is this problem only happening in the debug mode, because the application's working path exists actually . FYI.

eric.pen


Sat, 2008-03-22 11:49
Joined: 2005-12-07
Forum posts: 56
Re: :( debug problem about file session path

i think Z:\ is ROM in symbian os. and u can not do anything in that. you can just read it...

Mon, 2008-03-24 02:01
Joined: 2008-03-18
Forum posts: 20
Re: :( debug problem about file session path

Laughing out loud aha... when increating a new app , i found that the app is always created in the "z:\\system\\apps\" and we need to store something ,we must use other disk !!!!

  • Login to reply to this topic.