Discussion Board

Results 1 to 4 of 4

Thread: MHFRunError: -4

  1. #1
    Regular Contributor raysky's Avatar
    Join Date
    Mar 2003
    Posts
    131
    anyone know what does this error code for the HTTP connection class means?

    it is returned from here:
    Code:
    TInt CClientEngine::MHFRunError(TInt aError,
                    RHTTPTransaction /*aTransaction*/,
                    const THTTPEvent& /*aEvent*/)
      {
      // Just notify about the error and return KErrNone.
      HBufC* resMHFRunError = StringLoader::LoadLC(R_HTTP_MHFRUN_ERROR, aError);
      iObserver.ClientEvent(*resMHFRunError);
      CleanupStack::PopAndDestroy(resMHFRunError);
      return KErrNone;
      }
    after this line is called:
    Code:
      // Submit the transaction. After this the framework will give transaction
      // events via MHFRunL and MHFRunError.
      iTransaction.SubmitL();

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664

  3. #3
    Regular Contributor raysky's Avatar
    Join Date
    Mar 2003
    Posts
    131
    Quote Originally Posted by symbianyucca View Post
    thanks a lot symbianyucca,
    by the way, would you know if that means i need more heap memory or stack?

    i believe it's due to the "body" and "postdata" in the HTTPClient class that is too large...

    thanks

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    if you run out of stack, you normlly get Kern-Exec 3, so it is Heap issue.

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