• 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: NSOperationQueue Memory Leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOperationQueue Memory Leak


  • Subject: Re: NSOperationQueue Memory Leak
  • From: "Brock Batsell" <email@hidden>
  • Date: Wed, 6 Aug 2008 19:48:09 -0500

Inside your for loop you are allocating 10,000 NSInvocationOperation
objects without adding them to your autorelease pool.  Adding
[processor autorelease]; as the last line of the for loop killed
memory leakage for me.  Without it my real memory would jump 10 MB
each time queueOperations: ran, with it I had a high-water mark of
12.02 MB, and I extended it to run through 10 iterations.

Brock
_______________________________________________

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

References: 
 >NSOperationQueue Memory Leak (From: Mike Simmons <email@hidden>)

  • Prev by Date: Application control
  • Next by Date: Re: How to use a button to update an application with a text field value
  • Previous by thread: Re: NSOperationQueue Memory Leak
  • Next by thread: Re: NSOperationQueue Memory Leak
  • Index(es):
    • Date
    • Thread