×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Aug 2007
    Location
    Bangalore (INDIA)
    Posts
    38

    Unhappy RConnection::Start() and RConnection::Stop() causes ViewSrv 11

    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
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: RConnection::Start() and RConnection::Stop() causes ViewSrv 11

    Use the asynchronous variant of Start in an active object.

  3. #3
    Registered User
    Join Date
    Aug 2007
    Location
    Bangalore (INDIA)
    Posts
    38

    Re: RConnection::Start() and RConnection::Stop() causes ViewSrv 11

    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
    Join Date
    May 2009
    Posts
    89

    Re: RConnection::Start() and RConnection::Stop() causes ViewSrv 11

    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
    Join Date
    Mar 2008
    Location
    Guangzhou
    Posts
    56

    Re: RConnection::Start() and RConnection::Stop() causes ViewSrv 11

    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
    Regular Contributor
    Join Date
    May 2009
    Posts
    89

    Re: RConnection::Start() and RConnection::Stop() causes ViewSrv 11

    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

  7. #7
    Registered User
    Join Date
    Mar 2008
    Location
    Guangzhou
    Posts
    56

    Re: RConnection::Start() and RConnection::Stop() causes ViewSrv 11

    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

  8. #8
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    India
    Posts
    1,173

    Re: RConnection::Start() and RConnection::Stop() causes ViewSrv 11

    What should I do, if I want to cancel the asynchronous call ?
    You can check RConnection::Close() & RConnection::Stop()

Posting Permissions

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