• 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
NSOperations leaking ports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOperations leaking ports


  • Subject: NSOperations leaking ports
  • From: "Michael Hanna" <email@hidden>
  • Date: Mon, 11 Feb 2008 23:13:34 -0800

My application uses NSOperation/Queue to retrieve images off of the
web (I use the ObjectiveFlickr API and NSURLConnection). I find that
when I run the application though, in top I have a huge number of
ports open, #PRTS(upward of 1500 after creating many NSOperations). I
have looked around my code but not sure of the best place to look for
solutions to the issue. So far I've tried simply calling [self cancel]
when I'm certain the NSOperation is no longer needed.

Any other suggestions on how to diagnose/solve the issue?

Michael
_______________________________________________

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: NSOperations leaking ports
      • From: Jens Alfke <email@hidden>
    • Re: NSOperations leaking ports
      • From: Martin Redington <email@hidden>
  • Prev by Date: Re: Adding obj-c++ file to carbon project changes preprocessed header file types
  • Next by Date: Re: Objective-C++
  • Previous by thread: Re: Newb question: which feature am I looking for?
  • Next by thread: Re: NSOperations leaking ports
  • Index(es):
    • Date
    • Thread