Read-only archive of the All About Symbian forum (2001–2013) · About this archive

detect memory leak

3 replies · 3,133 views · Started 01 July 2003

hi
How We can detect the Memory leaks in Symbian?can any body suggest a solution to implement it ???

thanx in advance,
Saurabh

If you suspect that memory is leaking then guard this part of your code with UHEAP macros:

__UHEAP_MARK
DoSomething();
__UHEAP_MARKEND

When something is left on the heap in DoSomething() the code panics.

hi moak,
it works fine...thanx for this...
i have found it on:
http://www.newlc.com/article.php3?id_article=90

regards,
saurabh