Discussion Board

Results 1 to 8 of 8

Hybrid View

  1. #1
    Registered User er.khalid's Avatar
    Join Date
    Aug 2007
    Location
    Bangalore (INDIA)
    Posts
    38
    Hi All,

    In my app. RConnection::Start() and RConnection::Stop() sometimes causes ViewSrv 11.
    While searching this found a post @ http://mikie.iki.fi/symbian/faq/faq23.html
    There are numerous async functions without a corresponding cancel
    (RFile::Write, CObexClient::Connect, RConnection::Start). Since
    some of these requests might take an indefinite time to complete
    it's really painful - you might get a ViewSrv 11 panic just by
    trying to cancel an action. Some of them can be worked around,
    but none of those workarounds are documented.
    Can any buddy suggest me workaround for RConnection::Start, to avoid ViewSrv 11?
    Thanks & Regards,
    Md.Khalid Ahmad

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Use the asynchronous variant of Start in an active object.

  3. #3
    Registered User er.khalid's Avatar
    Join Date
    Aug 2007
    Location
    Bangalore (INDIA)
    Posts
    38
    Quote Originally Posted by wizard_hu_ View Post
    Use the asynchronous variant of Start in an active object.
    Hi wizard_hu_,

    I am using asynchronous variant of Start, only.
    Thanks & Regards,
    Md.Khalid Ahmad

  4. #4
    Regular Contributor ojve's Avatar
    Join Date
    May 2009
    Posts
    89
    Hey, maybe a little late, but I would try using the rude way of stopping the connection (ie. passing RConnection::EStopAuthoritative to Stop()). I seem to have the same problem when the connection is bad. Stopping the connection gently just takes too much time and since it's synchronous it makes ViewSrv complain.

    //T

  5. #5
    Registered User lucky06's Avatar
    Join Date
    Mar 2008
    Location
    Guangzhou
    Posts
    56
    When I try to Cancel() the RConnection::Start() , I got panic ViewSrv 11 .
    Can any buddy suggest me workaround for RConnection::Start, to avoid ViewSrv 11?
    Know yourself

  6. #6
    Registered User lucky06's Avatar
    Join Date
    Mar 2008
    Location
    Guangzhou
    Posts
    56
    Quote Originally Posted by wizard_hu_ View Post
    Use the asynchronous variant of Start in an active object.
    I use the following function.
    void RConnection::Start(TConnPref &aPref, TRequestStatus &aStatus);
    void RConnection::Start(TRequestStatus &aStatus);

    What should I do, if I want to cancel the asynchronous call ?
    Know yourself

  7. #7
    Nokia Developer Champion not_dying's Avatar
    Join Date
    Feb 2009
    Location
    India
    Posts
    813
    What should I do, if I want to cancel the asynchronous call ?
    You can check RConnection::Close() & RConnection::Stop()

  8. #8
    Regular Contributor ojve's Avatar
    Join Date
    May 2009
    Posts
    89
    Quote Originally Posted by er.khalid View Post
    Hi All,

    In my app. RConnection::Start() and RConnection::Stop() sometimes causes ViewSrv 11.
    While searching this found a post @ http://mikie.iki.fi/symbian/faq/faq23.html


    Can any buddy suggest me workaround for RConnection::Start, to avoid ViewSrv 11?
    Check my reply a couple of posts up, it should help you.

    Thomas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved