×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2013
    Posts
    7

    Problem in handling of 'large data' in http response : MHFRunError code (-4)

    Hi,

    I am trying to save an image data on http response but i am getting error in MHFRunError() method with code (-4). I am facing this problem when image data size is large(100 kb approx) but when image data is small then my code is working fine.

    Pls help me...I am stuck here last 2 days.


    ---------
    Thanks
    Pradip

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Problem in handling of 'large data' in http response : MHFRunError code (-4)

    You propably are running out of heap memory, so check whether defining bigger one would help:http://www.developer.nokia.com/Commu...an_application

  3. #3
    Registered User
    Join Date
    Apr 2013
    Posts
    7

    Re: Problem in handling of 'large data' in http response : MHFRunError code (-4)

    Thanks a lot...

    Now i am able to store large image.

    But I want to know the consequences of taking large heap. In my case i took
    EPOCHEAPSIZE : 0x5000 0x100000

    Is this Ok for my app.

    ------------
    Thanks
    Pradip

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: Problem in handling of 'large data' in http response : MHFRunError code (-4)

    That is actually a small heap. 0x100000 is just one megabyte, there is nothing to worry about. The strange thing is that this 1 MB is the default value already as I remember.

  5. #5
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,033

    Re: Problem in handling of 'large data' in http response : MHFRunError code (-4)

    I think we can increase upto 70 MB (i have tried till 60MB without any issues)

Similar Threads

  1. Help regarding Handling the Large data in Windows Mobile
    By junaid888 in forum Mobile Java General
    Replies: 5
    Last Post: 2010-07-21, 18:49
  2. handling a response with HTTP status code 100 (Continue)
    By gods_m in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-12-28, 07:46
  3. can anybody help me how to post large data via http
    By sangeethavijaysekar in forum Symbian
    Replies: 2
    Last Post: 2007-04-12, 07:57
  4. Continuous HTTP response handling.
    By khurshed79 in forum Symbian
    Replies: 1
    Last Post: 2005-10-03, 05:40
  5. How do you get the HTTP code for a response?
    By suboyd in forum General Messaging
    Replies: 0
    Last Post: 2003-05-29, 16:08

Posting Permissions

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