You can write a two functions for allocation and de-allocation. All allocations and de-allocations should go through those functions. where you can maintain alloc-count and free-count. At the end of program you can check these two variables for equality.

Even if you cant find the memory leak. These memory leaks will lead to crash the device when system try to free them. so use memptrsetowner(ptr,0) to that allocated memory. so nobody will try to free that memory and you will not face crashes. you can use this for critical parts of code which cant me monitored. like Memory allocated from notification threads or memory allocated from libraries...


Regards,
Sheshu Kumar Inguva.



Quoting Bharathi Kumaraswamy <[EMAIL PROTECTED]>:

[EMAIL PROTECTED] wrote:

You can use palmos "emulator" with limited featurs(without soundstreams...). If you get any memoryleak, emulator will generate files with memory content and function call stack where this memory allocated.


Regards,
Sheshu Kumar Inguva.


Quoting Bharathi Kumaraswamy <[EMAIL PROTECTED]>:

Hello All,

I need know whether there is any memory leaks in my application. Is there any way or method to do that?

Thanks
Bharathi
--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/





Thanks for ur reply.

I am developing phone call application and i am unable to test it in
emulator or simulator. I am using Treo 700p device.
I have checked all the functions. But I didn't get any memleaks.

I need know whether i can get any memleaks in certain circumstances.
So, Is there any method to check that?

Bharathi


--
For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/




--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to