×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    118

    File open panics on device

    I am trying to read image file, the code works correctly on emulator,
    but it panics on device, at File open api. Please suggest if I am missing anything.
    Here is the code :

    RFs aFs;
    User::LeaveIfError(aFs.Connect());
    CleanupClosePushL(aFs);
    RFile aFile;
    User::LeaveIfError(aFile.Open(aFs,aPath,EFileShareReadersOnly));// here it panics on device
    TInt aSize;
    User::LeaveIfError(aFile.Size(aSize));

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,089

    Re: File open panics on device

    what panic does it gives?

  3. #3
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,563

    Re: File open panics on device

    Quote Originally Posted by swarupk2007 View Post
    I am trying to read image file, the code works correctly on emulator,
    but it panics on device, at File open api. Please suggest if I am missing anything.
    Here is the code :

    RFs aFs;
    User::LeaveIfError(aFs.Connect());
    CleanupClosePushL(aFs);
    RFile aFile;
    User::LeaveIfError(aFile.Open(aFs,aPath,EFileShareReadersOnly));// here it panics on device
    TInt aSize;
    User::LeaveIfError(aFile.Size(aSize));
    Possibly you forgot to create (/package) your file in the right path.

  4. #4
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: File open panics on device

    Just check for how to get panic code.
    http://wiki.forum.nokia.com/index.ph...ded_panic_code

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: File open panics on device

    After getting the panic code, check http://wiki.forum.nokia.com/index.php/Error_codes too.
    Quote Originally Posted by swarupk2007 View Post
    Please suggest if I am missing anything.
    The file, probably.

Similar Threads

  1. Regarding BMCONV
    By sanah007 in forum Symbian
    Replies: 2
    Last Post: 2009-05-26, 12:47
  2. File is not getting saved in device.
    By HidayathKhan in forum Mobile Java General
    Replies: 3
    Last Post: 2008-03-18, 06:53
  3. XHTML : File open Error
    By as_vijay_anand in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-09-19, 06:36

Posting Permissions

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