Memory Allocation Question
Memory Allocation Question
- Subject: Memory Allocation Question
- From: Laurent Daudelin <email@hidden>
- Date: Mon, 28 Feb 2011 19:49:22 -0800
I'm working on an app that collect a few pieces of information about files in user's chosen folder. Some folders can contain large number of items. So, I'm carefully managing the memory I use but I'm stomped on a problem.
When I run my app, scanning my home folder, the memory consumption will go in the 300MB range. Even when I release all the objects I have been allocating, Activity Monitor reports the same amounts of real, virtual and private memory. Those amounts don't go down.
So, I ran my app a few times in Instruments. When I clear all objects I've been using, I am left with about 12KB of leaked memory.
How can Activity Monitor reports the same numbers while Instruments seems to report what's actually happening? I wouldn't have much problem with my app kinda keeping the same memory it used in subsequent runs but when I do another run, the memory used keeps going up, e.g. it doesn't seem to stabilize.
What am I doing wrong or not understanding?
Thanks for any pointer or info.
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden