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

memory leak

0 replies · 18,627 views · Started 06 October 2010

Hi
first of all, sorry if this is not the right place to post about memory issues
I am developing an app for the N8 and I am having memory leaks

I read somewhere about the macros
__UHEAP_MARK and __UHEAP_MARKEND

however, I am doing the following (to test how these macros work):

void doSomething()
{
int* array = new int[1000];
//I dont free the memory
}

in the main program:
{
__UHEAP_MARK;

doSomething();

__UHEAP_MARKEND;
}

and when I run it in debug mode, I am expecting to get a panic message, but I dont get anything...

Does anybody know if I am missing something?

Thanks