×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Oct 2006
    Posts
    60

    Memory Leak debugging

    My application have crashed a few times in device after running for quite a while. (20-60hrs)

    By checking log, it crashed on a state where no action was doing.

    I think it possibly caused by a memory leak?

    I have searched for a while in forum about debugging memory leak and I have a general idea (only).

    I would like to have some advice about, what's the next best move I should take now?

    It's not easy and I really need a help. Thx in advanced!

  2. #2
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: Memory Leak debugging

    first try to find out the panic for the application, and specify which platform you use, then we can help you better.

    for getting the panic code refer : http://newlc.com/Display-the-extende...c-code-in.html

    regards,
    vasant.

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Smile Re: Memory Leak debugging

    Hi,
    Quote Originally Posted by hong.lam
    My application have crashed a few times in device after running for quite a while. (20-60hrs)

    By checking log, it crashed on a state where no action was doing.

    I think it possibly caused by a memory leak?

    I have searched for a while in forum about debugging memory leak and I have a general idea (only).

    I would like to have some advice about, what's the next best move I should take now?

    It's not easy and I really need a help. Thx in advanced!
    What type of application you are developing?
    Please provide some more information about it so that someone can reply you if he/she faced such problem earlier.

    Regards.
    Kiran.

  4. #4
    Regular Contributor
    Join Date
    Oct 2006
    Posts
    60

    Re: Memory Leak debugging

    Thx vasant, It's a 2nd edition and I have jsut created the file and try it in emulator. Hope that I can get a panic soon.

    To Kiran:

    It's an email client application. as it crashed when it was running with nobody care, I'm just suspecting the leak could be produced in the backend network part rather than the UI.

    thx for prompt reply!

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Smile Re: Memory Leak debugging

    Hi,
    Quote Originally Posted by hong.lam
    It's an email client application. as it crashed when it was running with nobody care, I'm just suspecting the leak could be produced in the backend network part rather than the UI.
    Ya that could be one of the reasons. There may be other posibilities too, may be with your UI. Anyways you can better follow up the problem on catching actual panic code.

    All the best.
    Regards.
    Kiran.

  6. #6
    Regular Contributor
    Join Date
    Oct 2006
    Posts
    60

    Re: Memory Leak debugging

    I got some difficulties.

    My app run on the emulator with some unexpected errors(got not get mail as expected, but no crash), which i don't know if i could get the same crash.(I would still test it anyway)

    And, my device, the program works fine, but it's a 6630 and the ErrRd doesn't work and I can hardly see any panic code pop up.

    And, I think if I got memory leak that crashed the program, I could get a specific message as in this link: http://www.newlc.com/Tracking-down-memory-leaks.html

    am i correct?

    thx all!

  7. #7
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: Memory Leak debugging

    6600 uses Symbian OS v8.0a and Developer Platform:S60 2nd Edition, Feature Pack 2, so you can prepare one package file and include one text file and set the target path given below, if you have problem in installing the sis file specified in that link.

    "C:\symbian\7.0s\Series60_v20\Epoc32\wins\c\system\ltracker\ltracker.log" - "C:\system\Bootdata\errd"
    create one sis file and install it on the device this file will be copied to the target path.

    and yes the link you are talking about is very good source for tracking memory leaks.

    regards,
    vasant.

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

    Smile Re: Memory Leak debugging

    Hi,
    Quote Originally Posted by hong.lam
    I got some difficulties.

    My app run on the emulator with some unexpected errors(got not get mail as expected, but no crash), which i don't know if i could get the same crash.(I would still test it anyway)

    And, my device, the program works fine, but it's a 6630 and the ErrRd doesn't work and I can hardly see any panic code pop up.

    And, I think if I got memory leak that crashed the program, I could get a specific message as in this link: http://www.newlc.com/Tracking-down-memory-leaks.html

    am i correct?

    thx all!
    Using FileExplorer, check whether file named ErrRd is there or not on your phone. in C:\System\bootdata.
    Otherwise you can give one .pkg line entry with ErrRd from your sis file.
    like:
    "C:\Symbian\8.0a\S60_2nd_FP2\Epoc32\wins\c\system\ErrRd" - "C:\system\Bootdata\ErrRd"

    Make sure that you have empty ErrRd(without any extension) is there in the following path:C:\Symbian\8.0a\S60_2nd_FP2\Epoc32\wins\c\system\ErrRd

    Because it would be more easy to analyze if panic code is known.

    Regards.
    Kiran.

  9. #9
    Regular Contributor
    Join Date
    Oct 2006
    Posts
    60

    Re: Memory Leak debugging

    Actuallly I have used FExplorer cut and paste the ErrRd to the C:\System\bootdata, it didn't work and I have searched for details. People did mention ErrRd won't work on and after 6630 and FP2 device.

    -reference http://discussion.forum.nokia.com/fo...ad.php?t=74395

    Eventually I got a 7610 on hand and use that to do testing.

    Thanks for prompt reply and help!

Similar Threads

  1. Memory Leak, On device debugging.
    By jhsial in forum Mobile Java General
    Replies: 5
    Last Post: 2007-04-07, 10:44
  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 After Leave
    By gowthamyemme in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-02-23, 19:35
  4. Memory leak debugging
    By cputoaster in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 6
    Last Post: 2005-02-04, 21:01
  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
  •  
×