×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    11

    CIntConnectionInitiator.ConnectL() hangs

    I use my code in two different contexes.

    - In one place, it works
    - In the other place, the call to CIntConnectionInitiator.ConnectL() initiates a GPRS Connection (as can be seen on Display), but never completes.

    The question is: why?

    - Could it be a problem, that there exists already an on RSocketServ session (for Bluetooth)

    - Is the construct ...

    TRequestStatus req=KRequestPending;
    CIntConnectionInitiator.ConnectL(req);
    User::WaitForRequest(req);

    ... a problem for the CIntConnInitiator class, because it perhaps prevents the local CActiveScheduler from working?


    Thanks
    Kuno

  2. #2
    Registered User
    Join Date
    Sep 2003
    Posts
    11
    Hi all again

    Ok. I've found the solution. Obviously User::WaitForRequest() prevents the local CActiveScheduler from working

    > In final code however, the GPRS connection is built up, but the async
    > call never completes.

    > - The code block
    > {
    > TRequestStatus req(KRequestPending);
    > CIntConnectionInitiator.Connect(req);
    > User::WaitForRequest(req);
    > }
    > without using an Active Object (for testing purposes only) blocks
    > somehow my code.

Posting Permissions

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