Discussion Board
CIntConnectionInitiator.ConnectL() hangs
2003-12-12, 14:31
#1
Registered User
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
Registered User
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
Forum Rules