• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Memory Allocation Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Memory Allocation Question
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Can I pass some value to a sub-project?
  • Next by Date: Linking to libcrypto Using 10.6 SDK and Targeting 10.5
  • Previous by thread: How do I keep added folders current in my Xcode project?
  • Next by thread: Re: Memory Allocation Question
  • Index(es):
    • Date
    • Thread