Thread: memory leak
View Single Post

  #1  
Old 06-10-2010, 10:27 AM
super_juanjo super_juanjo is offline
Registered User
 
Join Date: Oct 2010
Posts: 2
super_juanjo is on a distinguished road
memory leak

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