×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    28

    [split] E32USER-CBASE 46 error

    am getting Error message of "E32User-CBase 46" for RSocket (CActive) tel me how to handle r solve this problem

    example code:
    SocketIO::SocketIO(): CActive(EPriorityStandard)
    {
    requestId = 0;
    //connectToMSF();
    }

    void SocketIO::connectToMSF()
    {
    TInetAddr address;
    TRequestStatus iStatus;
    buf = (char*)malloc(sizeof(char)*256);
    CActiveScheduler::Add(this);
    RHostResolver resolver;
    TNameEntry entry;
    User::LeaveIfError(iSocketServ.Connect());
    User::LeaveIfError(resolver.Open(iSocketServ, KAfInet, KProtocolInetTcp));
    CleanupClosePushL( resolver );

    resolver.GetByName(_L("192.168.2.124"), entry);

    CleanupStack::PopAndDestroy();//for resolver

    address.SetAddress((TInetAddr::Cast(entry().iAddr)).Address());
    //address.SetAddress(iaddr);
    address.SetPort(2800);
    address.SetFamily( KAfInet );
    iRunState=ESocketConnected;
    User::LeaveIfError(clientSockId.Open(iSocketServ, KAfInet, KSockStream, KProtocolInetTcp));
    clientSockId.Connect(address, iStatus);
    //User::WaitForRequest(iStatus);

    SetActive();
    }

    void SocketIO::RunL()
    {
    switch ( iRunState )
    {
    case ESocketConnected: //After Initating connection i //will be getting one msg from server
    if(iStatus == KErrNone)
    readDatastrt();
    break;

    case EGetRequestSent:
    sendData(buf);
    break;

    case EDataReceived:
    readData(echoID);
    break;

    case EConnectionClosed:
    break;

    default:
    break;
    } // end switch
    }

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: E32USER-CBASE 46 error

    Quote Originally Posted by inxstech View Post
    am getting Error message of "E32User-CBase 46" for RSocket (CActive) tel me how to handle r solve this problem

    example code:
    SocketIO::SocketIO(): CActive(EPriorityStandard)
    {
    requestId = 0;
    //connectToMSF();
    }

    void SocketIO::connectToMSF()
    {
    TInetAddr address;
    TRequestStatus iStatus;
    buf = (char*)malloc(sizeof(char)*256);
    CActiveScheduler::Add(this);
    RHostResolver resolver;
    TNameEntry entry;
    User::LeaveIfError(iSocketServ.Connect());
    User::LeaveIfError(resolver.Open(iSocketServ, KAfInet, KProtocolInetTcp));
    CleanupClosePushL( resolver );

    resolver.GetByName(_L("192.168.2.124"), entry);

    CleanupStack::PopAndDestroy();//for resolver

    address.SetAddress((TInetAddr::Cast(entry().iAddr)).Address());
    //address.SetAddress(iaddr);
    address.SetPort(2800);
    address.SetFamily( KAfInet );
    iRunState=ESocketConnected;
    User::LeaveIfError(clientSockId.Open(iSocketServ, KAfInet, KSockStream, KProtocolInetTcp));
    clientSockId.Connect(address, iStatus);
    //User::WaitForRequest(iStatus);

    SetActive();
    }

    void SocketIO::RunL()
    {
    switch ( iRunState )
    {
    case ESocketConnected: //After Initating connection i //will be getting one msg from server
    if(iStatus == KErrNone)
    readDatastrt();
    break;

    case EGetRequestSent:
    sendData(buf);
    break;

    case EDataReceived:
    readData(echoID);
    break;

    case EConnectionClosed:
    break;

    default:
    break;
    } // end switch
    }
    Remove the line in red. CActive already has an iStatus which is also inherited by SocketIO (btw, should be CSocketIO). The active schedule is looking for that iStatus, not for the one defined by you.
    Last edited by ltomuta; 2008-09-04 at 19:41. Reason: Typos
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: [split] E32USER-CBASE 46 error

    The example you're looking for can be found here: http://www.symbian.com/developer/tec...entEngine.html

    I don't know why is missing from the latest SDK but you can find it at least in the S60 2nd Edition SDK FP3.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. XMl Parser Implementation for Symbian
    By ittiam in forum Symbian C++
    Replies: 26
    Last Post: 2009-09-16, 05:26
  2. Browser monitoring
    By NevePankaj in forum Symbian C++
    Replies: 19
    Last Post: 2008-08-12, 10:06
  3. 再问关于symbian编译汇编
    By cloufei2007 in forum Symbian
    Replies: 0
    Last Post: 2008-02-03, 10:05
  4. C-code..unable to make sis
    By Symbian_Neil in forum Symbian C++
    Replies: 9
    Last Post: 2006-12-02, 07:55
  5. program closed ERROR: E32USER Cbase 63
    By jha_pankaj18 in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-05-12, 20:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •