memory leak problem
| Fri, 2007-02-23 14:17 | |
|
Hi, for the UI application, is that true that the Symbian framework will automatically check if there is a memory meak? So basically there is no need to use __UHEAP_MARK and __UHEAP_MARKEND macros, am I right?? BTW, about __UHEAP_MARK and __UHEAP_MARKEND, for example: __UHEAP_MARK; HBufC* test = HBufC::NewLC(2); /*asynchronos call here and the test variable will be deleted in the callback */ __UHEAP_MARKEND; do you guys think this can still cause a false memory leak sometimes? Don't laugh at me, I am just a supernewbie |
|






Forum posts: 131
I, for one, always use it in my unit tests:
TestXXXX()
{
__UHEAP_MARK;
CObj *obj = CObj::NewLC();
obj->DoSomeTestL(...);
CleanupStack::PopAndDestroy(obj);
__UHEAP_MARKEND;
}
Forum posts: 75
Don't laugh at me, I am just a supernewbie