• 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
Re: Memory not being released in a timely manner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory not being released in a timely manner


  • Subject: Re: Memory not being released in a timely manner
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 04 Jun 2013 10:35:11 -0700

On Jun 4, 2013, at 8:30 AM, Jeff Johnson <email@hidden> wrote:

> The "end" of the event loop cycle is immediately before the beginning. Thus, for example, if your app is in the background and not receiving events, then the autorelease pool will not be drained.

You can work around this by wrapping your own autorelease pools around code that allocates significant amounts of memory, rather than relying on the runloop’s outer autorelease pool to free it for you.

—Jens

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Memory not being released in a timely manner
      • From: Jonathan Taylor <email@hidden>
    • Re: Memory not being released in a timely manner
      • From: Jeff Johnson <email@hidden>
References: 
 >Memory not being released in a timely manner (From: Jonathan Taylor <email@hidden>)
 >Re: Memory not being released in a timely manner (From: Jeff Johnson <email@hidden>)

  • Prev by Date: Re: Memory not being released in a timely manner
  • Next by Date: Re: A question about NSScreen being autoreleased during loadNib()
  • Previous by thread: Re: Memory not being released in a timely manner
  • Next by thread: Re: Memory not being released in a timely manner
  • Index(es):
    • Date
    • Thread