System error (-1) Displaying *.Gif file

Login to reply to this topic.
Thu, 2007-07-26 11:35
Joined: 2007-05-02
Forum posts: 32

Hi ,
Can any one know the reason for the System error (-1)
i get at the following statement
basicDataProvider->SetFileL(iEikonEnv->FsSession(), _L("Z:\\resource\\apps\\AnimExample\\GuitarPlayer.gif"));
is that because it is unable to find the file ?


Thu, 2007-07-26 14:13
Joined: 2007-06-21
Forum posts: 82
Re: System error (-1) Displaying *.Gif file

Well, you answered yourself Eye-wink
Have a look at
http://www.newlc.com/Symbian-OS-Error-Codes.html
-1 means KErrNotFound , So if file is present at the path mentioned by you, this error will disappear
Br
G;p
http://mobisyblog.blogspot.com

Fri, 2007-07-27 06:18
Joined: 2007-05-02
Forum posts: 32
Re: System error (-1) Displaying *.Gif file

yes,
but when i use Open function in RFile class
it returns -1.
but physically i have copied file and placed at the location
Z:\\resource\\apps\\AnimExample\\GuitarPlayer.gif

can u tell me what is wrong in the process?

Fri, 2007-07-27 16:37
Joined: 2007-06-21
Forum posts: 82
Re: System error (-1) Displaying *.Gif file

Hi

Must be some minor problem. Hope it's not a spelling mistake. Normally there are 2 z: drives in Epoc32 folder.

C:\Symbian\9.1\S60_3rd\Epoc32\Data\z\resource\apps

C:\Symbian\9.1\S60_3rd\Epoc32\release\winscw\udeb\z\resource\apps

Where are you copying your file?

Also, try copying to C drive,ie

C:\Symbian\9.1\S60_3rd\Epoc32\winscw\c\AnimExample\GuitarPlayer.gif

and then call RFile Open.... on C:\\AnimExample\\GuitarPlayer.gif

You can send me ur exact code, may be I'll be able to tell u more Smiling

Br
G;p
http://mobisyblog.blogspot.com

  • Login to reply to this topic.