SetIapId() bug ?
| Mon, 2006-03-13 11:36 | |
|
Hi all!
I'm using TCommDbConnPref to override the connection settings but I've found a problem. I've got 4 access point configured in my phone. I use: User::LeaveIfError(iConnection.Open(iSocketServ)); connectPref.SetDialogPreference(ECommDbDialogPrefDoNotPrompt); connectPref.SetDirection(ECommDbConnectionDirectionOutgoing); connectPref.SetBearerSet(ECommDbBearerGPRS); connectPref.SetIapId(ap_id); This works perfect, but.. always the connection is made with the wrong AP!, if I select AP_ID = 3, the connection is made with the connecon ID = 4 it is very strange. I checked this with 2 diferents phones and is always the same. I tried with SetIapId(3) and nothing, the connection used was the iapid 4 If I use SetIapId(4) the connection used is which has id=5 The phone Ap Ids are: 2,3,4,5 I debuged all this during two days and I couldn`t find the problem. Someone could check it? This is a bug? Am i doing somthing wrong? Thank you very much mopa |
|






Forum posts: 162
I'm using TCommDbConnPref to override the connection settings but I've found a problem.
I've got 4 access point configured in my phone.
I use:
User::LeaveIfError(iConnection.Open(iSocketServ));
connectPref.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
connectPref.SetDirection(ECommDbConnectionDirectionOutgoing);
connectPref.SetBearerSet(ECommDbBearerGPRS);
connectPref.SetIapId(ap_id);
This works perfect, but.. always the connection is made with the wrong AP!, if I select AP_ID = 3, the connection is made with the connecon ID = 4
it is very strange.
I checked this with 2 diferents phones and is always the same.
I tried with SetIapId(3) and nothing, the connection used was the iapid 4
If I use SetIapId(4) the connection used is which has id=5
The phone Ap Ids are: 2,3,4,5
I debuged all this during two days and I couldn`t find the problem.
Someone could check it?
This is a bug?
Am i doing somthing wrong?
Thank you very much
mopa
Get rid of
connectPref.SetDirection(ECommDbConnectionDirectionOutgoing); and
connectPref.SetBearerSet(ECommDbBearerGPRS);
in your code and see what happens (actually I don't foresee any change)
http://www.tanzim.co.uk