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

why a leak in lowmemory but not otherwise ?

1 replies · 0 views · Started 24 February 2006

Hi,
a memory leak, if present in an app, should be also visible during normal
execution of app, no ?

why would the low memory test report leaks are present but during normal
execution simply no leak?

neither do i observe any leaks while testing in WINS using __UHEAP_MARK &
__UHEAP_MARKEND macros, this is realy looking annoying to track these leaks
?

any suggestions would be really appreciated please ?
WBR
David.


"David Murphy" <[email protected]> wrote in message
news:6yzh7NXOGHA.1036@extapps30...
> Hi,
> a memory leak, if present in an app, should be also visible during normal
> execution of app, no ?
>
> why would the low memory test report leaks are present but during normal
> execution simply no leak?
>
> neither do i observe any leaks while testing in WINS using __UHEAP_MARK
> &
> __UHEAP_MARKEND macros, this is realy looking annoying to track these
> leaks
> ?
>
> any suggestions would be really appreciated please ?

LowMem only tests application startup, and this includes the system code,
which is known to leak (hint: look page 100 in "Symbian OS C++ for mobile
phones 2", first and second bold lines). It doesn't test (AFAIK) normal
command execution.

You cannot test application startup from inside your program, so using the
macro's doesn't help here.

--
Sander van der Wal
www.mBrainSoftware.com