Discussion Board

Results 1 to 6 of 6
  1. #1
    Hi!
    In my "AppContainerView" realization, in method that processing event of pressing menu button, I'm do this:
    Code:
    TBool CAppContainerView::HandlePress_MenuItemSelectedL( TInt aCommand )
    {	
       ...
    
       TBuf8<500> KRequest;
    		
       KRequest.Insert(KRequest.Length(), KPropAddress);
       KRequest.Insert(KRequest.Length(), request_header_and_recipient);
       KRequest.Insert(KRequest.Length(), request_from);
       KRequest.Insert(KRequest.Length(), request_content);
    	
       HBufC8* RequestData = HBufC8::NewLC(KRequest.Length());
       RequestData->Des().Copy(KRequest);		
    
       switch ( aCommand )
       {
            // Calling generated in Carbide.C++ method of the WebClientEngine;
    	default:   CAppContainerView::IssueHTTPGetL(RequestData);
       }
    		
       return ETrue;
    }
    All data in descriptors are right, but...
    When i press menu button and select the access point, my app (or IssueHTTPGetL() ) do nothing and on screen of the device shows to me message "Please wait..." till i'm canceled the request.
    Also in emulator - request sends perfect!!!
    Debugging and on-device debugging returned to me that "RequestData" contained right request (as i want) but on device (S60 3-d Ed.) does not work.
    Please, help.

  2. #2
    About hour ago, I'm trying one more time to debug my assembly.
    So, I think (am i right?), there is no problem in IssueHTTPGetL(), because:
    when I'm toggle breakpoint to view value of "aEvent" (in file "WebClientEngine.cpp" - generated, after adding to the container of the app - web client component, in Carbide.C++ UI design),
    Code:
    // ----------------------------------------------------------------------------
    // CWebClientEngine::MHFRunL()
    // Inherited from MHTTPTransactionCallback
    // Called by framework to pass transaction events.
    // ----------------------------------------------------------------------------
    //
    void CWebClientEngine::MHFRunL( RHTTPTransaction aTransaction, 
                                    const THTTPEvent& aEvent )
        {
        // Next line contain breakpoint;
        switch ( aEvent.iStatus ) 
            {
            case THTTPEvent::EGotResponseHeaders:
                {
    in the emulator the value ("aEvent") contained number "4", after next step of debugging - "5", then "6" and the last is "8" - after that, request is successfully sends, but...
    on-device debugging, this value of the "aEvent" contained "-5120"
    - it is wrong, but why "aEvent" receive the value "-5120" ?

    So, I think, that after receiving "-5120" application just close the transaction:
    Code:
            default:
                // There are more events in THTTPEvent, but they are not usually 
                // needed. However, event status smaller than zero should be handled 
                // correctly since it's error.
                {
                iObserver.ClientUnknownEventL( *this, aEvent.iStatus );
                if ( aEvent.iStatus < 0 )
                    {
                    // Just close the transaction on errors
                    aTransaction.Close();
                    iRunning = EFalse;
                    }
                }
                break;
    and do not close message "Please wait...".
    Am I right?

    Please, help me!

  3. #3
    Nokia Developer Moderator A.A.M.'s Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,308
    //Domain Name Daemon Error Codes
    -5120
    KErrDndNameNotFound
    Returned when no data found for GetByName. No response from DNS server.

    Looks like you have problems with DNS settings on the phone.

    ps:
    You can download the error codes spreadsheet from here - http://developer.symbian.com/main/do...odesLatest.zip

  4. #4
    Thnx A.A.M.
    Trying to solve the problem...

  5. #5
    Quote Originally Posted by A.A.M. View Post
    Looks like you have problems with DNS settings on the phone.
    Can you tell me from what to begin solve my problem?

  6. #6
    http://discussion.forum.nokia.com/fo...d.php?t=161704 - is the answer.
    Thnx for "lieuwe"

Similar Threads

  1. Problem with CAknDoubleStyleListBox with a CAknSearchField
    By jjig in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-09-17, 00:58
  2. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  3. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36
  5. wireless problem
    By sash_mca in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2003-06-06, 11:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved