×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    94

    why my socket throw an error with "E32USER-CBase42"after connect success.

    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();
    }
    }

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144
    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

  3. #3
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    329
    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
  •