Archived:RHostResolver and redundant display of access point selection dialog (Known Issue)
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
Using a host name resolver (RHostResolver) may cause the access point selection dialog to pop up continuously in S60 3rd Edition.
Article Metadata
Compatibility
Platform(s): S60 3rd Edition
Article
Keywords: RHostResolver, RSocketServ
Created: User:Technical writer 1
(20 Aug 2007)
Last edited: hamishwillee
(21 Jun 2012)
Description
On S60 3rd Edition, using a host name resolver service (RHostResolver) during an already active connection results in the access point selection dialog popping up each time a name resolution is made.
How to reproduce
Connect to socket server (RSocketServ) and open an RConnection instance:
iSocketServer.Connect();
iConnection.Open(iSocketServer);
Start a new internet connection:
iConnection.Start();
The access point selection dialog will be displayed. Select an appropriate AP. After the connection has been established, open a DNS resolver session using RHostResolver and try to resolve a host name:
iResolver.Open(iSocketServer, KAfInet, KProtocolInetUdp);
iResolver.GetByName(someHost, iResult);
Access point selection dialog will be displayed again.
Solution
Pass the active RConnection instance to the host resolver:
iResolver.Open(iSocketServer, KAfInet, KProtocolInetUdp, iConnection);


(no comments yet)