×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    2

    RunL in CEchoEngine is not executed.

    Hi,

    I am developping an application that uses LBS and TCP/IP. The LBS is working correctly which has its own source file and TCP/IP Connection has its own source file too. That means in the ConstructL of the source file FirstGpsAppView.cpp. I Wrote:

    // Create a window for this application view
    CreateWindowL();

    iErrCode = 1;
    // Set the windows size
    SetRect(aRect);

    //LBS
    iPositioner.ConstructL(this);
    //Network Services
    iEchoEngine = CEchoEngine::NewLC(this);
    CleanupStack::Pop(); //iAOExampleEngine
    //iSender.ConstructL(this);
    // Activate the window, which makes it ready to be drawn
    ActivateL();

    The GPS Activity is working very well and i get the position of my current location. But the TCP/IP is not responding any thing. I think RunL of CEchoEngine is not executed, that means the Active Object is not "Set Active". But When i write SetActive() in the ConstructL of CEchoEngine, the emulator will crash and close itself.

    I don't what to do and one more thing the library of the TCP/IP is taken from http://www.symbian.com/developer/tec...hoClientEngine Found in: examples\Networking\TcpIp\EchoClientEngine.

    Please reply to me and Thank you very much for your support in advance.

    Best Regards,
    George NAMMOUR

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: RunL in CEchoEngine is not executed.

    Symbian examples are nice, but they are hard to use, since they are not really fitted to the different UI variants. Consider checking if that example works in itself.
    Note that S60 SDK-s contain S60-specific examples too, in older (2nd edition) ones you should check S[eries]60Ex\sockets, in newer (3rd, 5th edition), you may consider checking the Chat example.
    And SetActive should be invoked whenever you issue an asynchronous request (so you pass iStatus to some service method).

Similar Threads

  1. RunL is not executed when my application is in background
    By symsta in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-09-13, 14:29
  2. ExecuteD messes up cleanupstack?
    By jspekki in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-08-29, 12:46
  3. Problems with active objects, RunL() not called
    By Ewent in forum Symbian C++
    Replies: 6
    Last Post: 2007-06-15, 09:16
  4. ActiveObject RunL is called just once
    By lskmao in forum Symbian C++
    Replies: 3
    Last Post: 2007-01-18, 15:15
  5. Replies: 2
    Last Post: 2006-08-30, 21:33

Posting Permissions

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