memory leak tracking problem... HELP!!
| Wed, 2006-03-22 12:14 | |
|
The framework complains about a memory leak in my application after quitting. Hook logger gives me a stack (below) of the leaked memory cell and this hints that the memory leak is in an http connection which I have done with active objects.
BUT there's no reference in the stack to functions which I coded myself... Is this leak actually a leak inside framework or do active objects somehow "hide" my code...? Second question: If this is a framework leak, how can I find my own leaks when the framework always complains about this leak first? Confusing... Please help me! -Marko- EUSER::RHeap::AllocL + 19 EUSER::User::AllocL + 19 Expo + 11455 -EUserParasite_EKA1.dll! 1000db8f() Expo + 12216 -EUserParasite_EKA1.dll! 1000de88() EUSER::CBase::newL + 13 BAFL::MBackupOperationObserver::Reserved1 + 1789 -BAFL.DLL! 4010503c() BAFL::RStringPool::StringF + 4860 -BAFL.DLL! 40116ae8() BAFL::RStringPool::OpenFStringL + 29 Ordinal1 + 8401 -DEFLATEFILTER.DLL! 17dd336f() Ordinal1 + 7883 -DEFLATEFILTER.DLL! 17dd3169() HTTP::CRxData::ConstructL + 2799 -HTTP.DLL! 141ca392() HTTP::CRxData::ConstructL + 1097 -HTTP.DLL! 141c9cec() EUSER::CActiveScheduler::Start + 514 EUSER::CActiveScheduler::Start + 65 CONE::CCoeEnv::ExecuteD + 53 EIKCORE::EikDll::RunAppInsideThread + 282 EIKCORE::EikDll::RunAppInsideThread + 368 EUSER::User::StartThread + 25 EKERN::DSharedIoBuffer::New + 2300 -EKERN.DLL! 5b018d40() kernel32.dll! 7c80b50b() |
|






Forum posts: 364
So does the code in your active object delete/cleanup all the HTTP related useage properly?
Forum posts: 7
Active object is dequed and the http engine is destroyed... But something may still remain. But how can you find that from a million (not quite
BTW, I ran the program in two phones and neither of them complained of a memory leak... I think that would suggest that the leak is in the emulator's framework.
If the leak really is in the framework and the leak is the first one emulator complains, then I'm stuck... Unless someone could tell me how to spot all memory leaks at once?
Forum posts: 10
Try your app on S60_2nd_FP3 (feature pack 3), my experience is that the HTTP libraries play friendlier here (i.e. no memory leak).
Let us know how you go.
-Bob
Forum posts: 364
P.S.
Memory leak detection isn't enabled on hardward builds.
Forum posts: 7
There's a problem with FP3. For some reason the network connection in my FP3 emulator doesn't work
Mungbeans:
Thanks, mungbeans, I didn't know that __UHEAP_MARK and MARKEND don't work on phones. I must have seen just other panic screens on phones (I'm a beginner with Symbian, so I don't spot everything). But I can't post a single line of code... My boss is rather serious about security.
Forum posts: 364
I don't have the links to hand but you should be able to find them on this website somewhere probably or on the symbian site if you search.
But just do a code review of your active object first, make sure all C objects are being deleted, all R objects are being closed etc.