×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    HookLogger and leaves monitoring

    Hello,
    I m playing with HookLogger and Emulator on S60_3rd_mr and I have got the following problem.

    I can easily use HookLogger with heap allocations monitor but i have problems with leaves monitoring.
    I have seen thoes presentations showing how to do it and i do it as the have shown but in my Leaves tab there are so many leaves (each second several of them appears) that it is impossible to get the one from my application (In the presentation they just got 1 leave there).
    Is it normla that so many leaves appeares there?
    Myabe tehre is something wrong with my emulator?
    Or maybe it just doesnt work?

    Thanks in advance

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346

    Re: HookLogger and leaves monitoring

    hooklogger leave table show all heap alloc list.
    so you need use "alloc xxxx" panic locate when app exit.

    find xxxx in heap alloc, it will show you which code alloc but not free memory.
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

  3. #3
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    Re: HookLogger and leaves monitoring

    Hello,
    thanks for response.
    I guess that you might have misunderstood me or i just don t get your answear.
    I guess you are talking about Alloc panics which appear when there is memory leak.
    If so i know how to do it.
    I have problem with locating application leave (for example CBASE-47 etc).
    In the presentation they had 1 leave listed in "Leaves tab" and it was their application leave.
    When my emulator is running in "Leave tab" i have got much more leaves.
    And here are my three questions from my first post in this thread.

    thanks in advance

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,335

    Re: HookLogger and leaves monitoring

    If you are talking about E32USER-CBase 47, then those are referred to as panic. It may happen that solving one memory leak will result in solving other leaks as well. As you are getting this panic, it might be possible that it leaves some memory leak behind it. So if you solve that Panic then eventually you will solve all other memory leaks.

    An easy way is to set Just-in-time debugger in your Emulator setting. Then start debugging, when you encounter this panic, control flow will be stopped on the line that causing this problem. That's it. Just solve the problem and it should work.

    I hope I understood your questions correctly.
    Nokia Developer Wiki Moderation team

  5. #5
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: HookLogger and leaves monitoring

    and E32USER-CBase 47 mean some where in your code a active object is panicing.

  6. #6
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    Re: HookLogger and leaves monitoring

    Thanks for response,
    it s not exactly what i have been talking about.
    CBASE 47 was just an example and i don t get this error.

    I just watched here: http://developer.symbian.com/main/to...gger/index.jsp
    leave tutorial and in my case it just doesn t work like in tutorial and i d like to know if am i doing something wrong or it juest doesn t work :)

    thanks in advance

Posting Permissions

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