RConnection and RHTTPsession under V9
| Fri, 2006-06-02 08:11 | |
|
|
I've got a problem with the HTTP Stack on Symbian 9 (My code works fine on Symbian 7 /
![]() I'm using a RHTTPSession with my own connection. Code: // Set the connection information. RStringPool strP = iSession.StringPool(); // Set the socket server RHTTPConnectionInfo oConnInfo = iSession.ConnectionInfo(); oConnInfo.SetPropertyL ( strP.StringF(HTTP::EHttpSocketServ, RHTTPSession::GetTable() ), THTTPHdrVal (oSocketServer->Handle()) ); // Set the Connection TInt nConnPtr = REINTERPRET_CAST(TInt, oConnection); oConnInfo.SetPropertyL ( strP.StringF(HTTP::EHttpSocketConnection, RHTTPSession::GetTable() ), THTTPHdrVal(nConnPtr)); Unfortunately when I destroy my RHTTPSession it also destroys the RConnection attached to it. The RConnection is used by other part of my application and used to be destroyed later. How could I prevent the RHTTPSession from destroying the RConnection ? |







Forum posts: 723
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 36
I don't destroy my RConnection be myself anymore but it looks more like a workaround than like a solution.