Discussion Board
why my socket throw an error with "E32USER-CBase42"after connect success.
2004-10-10, 04:06
#1
Regular Contributor
why my socket throw an error with "E32USER-CBase42"after connect success.
void CSocketsEngine::PromptOffApnSelect()
{
RGenericAgent* iAgent = new RGenericAgent();
CleanupStack::PushL(iAgent);
if (iAgent->Open() == KErrNone)
{
CStoreableOverrideSettings* iOverrides = CStoreableOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial, EDatabaseTypeIAP);
CleanupStack::PushL(iOverrides);
CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref iPref;
iPref.iRanking = 1;
iPref.iDialogPref = ECommDbDialogPrefDoNotPrompt;
iPref.iDirection = ECommDbConnectionDirectionOutgoing;
iPref.iBearer.iBearerSet = ECommDbBearerGPRS|ECommDbBearerCSD;
iOverrides->SetConnectionPreferenceOverride(iPref);
iAgent->StartOutgoing(*iOverrides,iStatus);
CleanupStack::Pop(iOverrides);
}
CleanupStack::Pop(iAgent);
SetActive();
}
void CSocketsEngine::ConnectL(TUint32 aAddr) // <a name="ConnectL32">
{
// Initiate attempt to connect to a socket by IP address
if (iEngineStatus == ENotConnected)
{
PromptOffApnSelect();
User::LeaveIfError(iSocket.Open(iSocketServ, KAfInet, KSockStream, KProtocolInetTcp));
// Set up address information
iAddress.SetPort(iPort);
iAddress.SetAddress(aAddr);
iSocket.Connect(iAddress, iStatus);
ChangeStatus(EConnecting);
// Start a timeout
iTimer->After(KTimeOut);
SetActive();
}
}
Nokia Developer Expert
have you checked the SDK docs for the error, it says:
"This panic is raised by the SetActive() member function of an active object, a CActive. It is caused by an attempt to flag the active object as active when it is already active, i.e. a request is still outstanding."
yucca
Regular Contributor
Hi agirllikeyou,
I'm getting similar errors in my socket app.
Everything was fine before timers, so I think the problem is caused by that.
Keep me in touch,
Bye
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