Re: NSOperationQueue Memory Leak
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