×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jul 2003
    Location
    Australia
    Posts
    38

    Asynchronous RFile::Read returning KErrCorrupt

    Hi,

    Has anyone come across a problem with the asynchronous RFile::Read returning KErrCorrupt in its associated RunL but which works ok using the synchronous RFile::Read on the same file? Does anyone have any suggestions about what would cause this?

    Cheers,
    Gingah

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Asynchronous RFile::Read returning KErrCorrupt

    Quote Originally Posted by Gingah
    Hi,

    Has anyone come across a problem with the asynchronous RFile::Read returning KErrCorrupt in its associated RunL but which works ok using the synchronous RFile::Read on the same file? Does anyone have any suggestions about what would cause this?

    Cheers,
    Gingah
    I use Asynchronous RFile::Read without any Problem ...
    Can you post the Code that you use. So that we can get a better view of the Problem.

  3. #3
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Asynchronous RFile::Read returning KErrCorrupt

    HI Ganesh!

    did you try it with User::WaitForRequest?
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Asynchronous RFile::Read returning KErrCorrupt

    Quote Originally Posted by kkrish
    HI Ganesh!

    did you try it with User::WaitForRequest?
    If you are using Asynchronous RFile there is no point in using User::WaitForRequest. As it will make the Asynchronous virtually synchronous. Correct me if i am wrong.

  5. #5
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: Asynchronous RFile::Read returning KErrCorrupt

    what u say is correct ! however, he must have told that to simply check the async call working or not !

    to author:
    do post ur code snippet for us to diagnose
    Amit Kankani
    Nokia Developer Champion

  6. #6
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Asynchronous RFile::Read returning KErrCorrupt

    Quote Originally Posted by skumar_rao
    If you are using Asynchronous RFile there is no point in using User::WaitForRequest. As it will make the Asynchronous virtually synchronous. Correct me if i am wrong.
    dear skumar_rao,

    amit is right i am just trying to make sure, that async call working or not .

    hope you don't mind.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Asynchronous RFile::Read returning KErrCorrupt

    Quote Originally Posted by kkrish
    dear skumar_rao,

    amit is right i am just trying to make sure, that async call working or not .

    hope you don't mind.
    Hi kkrish,
    Sorry if my previous Post hurt you, i just wanted to know why you are asking for WaitForRequest().

    After amit's Post only i came to know what is the Purpose.

  8. #8
    Registered User
    Join Date
    Jul 2003
    Location
    Australia
    Posts
    38

    Re: Asynchronous RFile::Read returning KErrCorrupt

    Hi,

    Thanks for the responses but I twigged what was causing the error - my file reading active object's priority was lower than the priority of server thread it was being called from and there was a lot of client\server communication happening during the file read. I pbly would have thought of this earlier but the severe sounding error threw me a bit.

    Cheers,
    Gingah

Similar Threads

  1. Create Asynchronous Service Provider
    By Shilpa13 in forum Symbian
    Replies: 2
    Last Post: 2006-12-26, 10:43
  2. Asynchronous Service Provider
    By Shilpa13 in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-12-19, 06:37
  3. asynchronous series 60 UI and missbehaving active objects
    By petxolobo in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-10-11, 09:12
  4. NMSS SDK 1.2 and EAIF Terminating Asynchronous Transactions
    By jtblatt in forum General Messaging
    Replies: 0
    Last Post: 2003-09-09, 02:10

Posting Permissions

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