memory leak

Login to reply to this topic.
Mon, 2006-07-31 07:43
Joined: 2006-05-22
Forum posts: 36

Hello everybody,

     Can any one of  u tell me the reasons behind the memory leak.
For removing memory leak & failure percentage what criteria should I apply. What things should I check?
What r the possible ways for removing the memory leak.

Is Low memory tool2 of symbian is reliable tool or what?
Can we check memory leak by changing its factory settings.

Thanx in advance.


Mon, 2006-07-31 14:38
Joined: 2004-05-21
Forum posts: 285
Re: memory leak
Did you check this link?

http://www.newlc.com/Memory-Leak-Tool.html

Cheers,
Sri
Wed, 2006-08-02 07:41
Joined: 2006-05-22
Forum posts: 36
Re: memory leak
Hello srikanth,

Thanx for u r reply.I check out the link that u send but I do'nt want the tools for memory testing .
I want the reasons behind the memory leak. Why memory leak occurs . What are the possible things should we care  for memory leak will not occurs . For e.g. delete all resources that r not in use.
And any more criteria like this .

Thanks alot
Wed, 2006-08-02 10:30
Joined: 2005-09-16
Forum posts: 141
Re: memory leak
Hi Prathibha,

Put break points in each class destructor and debug it.

regards,
eswar
Wed, 2006-08-02 13:04
Joined: 2004-05-21
Forum posts: 285
Re: memory leak
Common reasons for memory leak are:

1. You allocate memory and doesnt release or delete in dtor r where ever it is. This is little easier to find.

2. Some memory leaks occur because of leaves. So you need to be very careful when dealing with any thing which leaves.


Cheers,
Sri

Wed, 2006-08-02 14:07
Joined: 2005-08-11
Forum posts: 278
Re: memory leak
You can have a look at this link:

http://www.newlc.com/Tracking-down-memory-leaks.html?var_recherche=memory+leaks

It is for Tracking down memory leaks

max_i
Thu, 2006-08-03 08:16
Joined: 2006-05-22
Forum posts: 36
Re: memory leak
Hello  srikanth,eswar & max_i ,

Thanks for your replies.

Now my project having

Test count - 27
Test Failed - 11
Memory Leak - 0

Why this test fail occurs.

Is the following code  causes for test failed or memory leak.

                RFs    fsession;
                     fsession.Connect();
                     fsession.RmDir(Newpath);
                     fsession.Close ();

There are many segments like this in my project .Are  they caues for test fail. What are the reasons behind the test fail .
How I check out the this failures.
How much test failed will be allowed.

Thanks alot.

Pratibha




  • Login to reply to this topic.