Thanks for hint,
my code:
Code:
RSocketServ socketServ;
RConnection connection;
User::LeaveIfError(socketServ.Connect());
User::LeaveIfError(connection.Open(socketServ));
TCommDbConnPref pref;
pref.SetIapId(3); // IAP ID for connection to be used
pref.SetDialogPreference( ECommDbDialogPrefDoNotPrompt );
pref.SetDirection( ECommDbConnectionDirectionOutgoing );
connection.Start(pref);
RHTTPConnectionInfo connInfo = iHttpSession.ConnectionInfo();
RStringPool pool = iHttpSession.StringPool();
connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketServ,
RHTTPSession::GetTable()), THTTPHdrVal(socketServ.Handle())); connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketConnection, RHTTPSession::GetTable()), THTTPHdrVal(connection.SubSessionHandle()));
iHttpTransaction = iHttpSession.OpenTransactionL(uri, *iTransObs, requestMethod);
(...)
iHttpTransaction.SubmitL();
Then my function has been finished, my code is waiting for callback in httpeventhandler. I don't have any callback, no window to select APN, but panic kern-exec 3.
This panic doesn't exists if I don't try hide APN window.
I check it on emulator
On device is no panic, application hangt. I wait for about 5-6min and nothing, I had to kill it manually. No callback. Any idea?
PS iapid is correct, I use hint from http://www.newlc.com/en/topic-9372 to retrieve iapid.