×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    14

    Memory Leak in RHTTPSession (S60 2nd. FP2)

    Hi,

    as previously reported here: http://discussion.forum.nokia.com/fo...t=RHttpSession and here: http://discussion.forum.nokia.com/fo...t=RHttpSession, there seems to be a memory leak in RHTTPSession of the Series60 2nd. Ed. FP2, at least in the emulator.

    the test case is easy: get the HTTP Client Example v1.0: http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html, compile it, run it with Epoc32\wins{cw}\c\system\Bootdata\ErrRd in place.

    You will get a thread panic: Alloc <Address> 0 if you run a successfull GET and then normally exit the application.

    can someone please make an official statement regarding this? a 'jep, it's broken, we know it' would ease my memory leak nightmares a lot.

    thanks in advance,

    Thomas Jakobi

    p.s.: this should be in the c++ section. sorry. maybe someone can move this thread?

    edit: added the needed 'run successfull get and exit' instruction to the test case.
    Last edited by fake777; 2005-10-28 at 19:39.

  2. #2
    Registered User
    Join Date
    Jul 2005
    Location
    Italy
    Posts
    49

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    Could that be related also with:

    http://discussion.forum.nokia.com/fo...ad.php?t=67798

    ?

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    3

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    i am has the same problem with you. i develop a HTTP UP and Down Load class base on the HTTP Client Example .when it uploaded or downloaded a file and quit my application it will raise a panic. Could some one can tell me what can i do now?is there any alternate method to down up load a file?

  4. #4
    Registered User
    Join Date
    Jul 2005
    Posts
    14

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    i'm not sure, but i think i read somewhere that this is a known issue - though i didn't find it in the S60 2nd platform errata docs...

  5. #5
    Registered User
    Join Date
    Jul 2005
    Location
    Italy
    Posts
    49

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    On my side, i just want to add a field to a remote database and that's why i have to query a web page. But that is just impossible with this problem... :| And i have to get it working soon

  6. #6
    Registered User
    Join Date
    Nov 2005
    Posts
    3

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    dexterp37:
    i have the same situation with you,
    i must rosolve the problem soon.
    dos any body knows some docs about this problem?

  7. #7
    Registered User
    Join Date
    Aug 2005
    Posts
    9

    Unhappy Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    hi, anybody Whether already solve the problem!

    help, how to solve the problem??

    thk...
    Last edited by wltsui; 2006-01-19 at 09:44. Reason: error

  8. #8
    Registered User
    Join Date
    Jul 2005
    Location
    Italy
    Posts
    49

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    Not fixed it yet :|

  9. #9
    Registered User
    Join Date
    Jul 2005
    Posts
    14

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    i worked around this by creating mockups of the classes using RHTTPSession that didn't use http, but returned static data, that way i could de-memory-leak my application.

    still, this sucks.

  10. #10
    Registered User
    Join Date
    Jul 2005
    Location
    Italy
    Posts
    49

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    Ouch, that's pain! can you give us any example ?

  11. #11
    Registered User
    Join Date
    Mar 2005
    Posts
    4

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    Another solution is to use the beta version of the FP2 SDK. Everything works fine with this SDK but it may not be available any more..?

    I can confirm however, that this is just an emulator problem. Code works fine on the device. At least for me
    Last edited by longtemp; 2006-01-19 at 15:08.

  12. #12
    Registered User
    Join Date
    Feb 2006
    Posts
    15

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    Hi,

    Same problem is also in S60 3rd edition 1.0 SDK. I tested weblient example and when exit application after succeddfull get, application crash.

  13. #13
    Registered User
    Join Date
    Jul 2005
    Location
    Italy
    Posts
    49

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    That is driving me crazy. How is that possible that no guru has experienced this issue and knows about it?

  14. #14
    Registered User
    Join Date
    Jul 2005
    Posts
    14

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    Hi,

    i'm not sure, but can you try and call "CloseSTDLIB()" (in libc/sys/reent.h) before destruction of your last class ? i'm not sure what did it, but i'm not seeing the memory leak anymore, and adding that call was the most obvious change i made...

    on the other hand, i only tried it on series80, 2nd ed., where i think i saw the leak too, but it may well be this is bogus..

    fake

  15. #15
    Registered User
    Join Date
    Jul 2005
    Location
    Italy
    Posts
    49

    Re: Memory Leak in RHTTPSession (S60 2nd. FP2)

    Thank you, i'll give it a try but.. weird

Similar Threads

  1. Network connection not working on S60 2nd Ed FP2 emulator
    By jalakuri in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2007-05-08, 15:47
  2. memory leak on emulator = memory leak on device
    By manmli in forum Mobile Java General
    Replies: 2
    Last Post: 2006-08-05, 19:54
  3. Memory Leak in S60 V1 Avkon
    By josefaichhorn in forum Symbian
    Replies: 10
    Last Post: 2005-02-02, 12:40
  4. EPOCROOT error in S60 SDK 2nd ed. FP2
    By abolfoooud in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-01-25, 22:10
  5. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

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