• 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: CGImageSourceCreateFromURL failed with error -11
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGImageSourceCreateFromURL failed with error -11


  • Subject: Re: CGImageSourceCreateFromURL failed with error -11
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Fri, 8 Aug 2008 23:51:21 +0200


Le 8 août 08 à 20:56, Ken Ferry a écrit :

Hi James, Nicholas,

I still bet it's someone holding too many file descriptors open.

Nicholas, when you said this, "but I have forced the thumbnail
creation to have at most 10 files opened at the same time", what did
you mean?   You can see what files your process has open using the
lsof command line tool.  Use that to check what files you have open.

lsof -p <pid>

If you find that the problem is files staying open longer than you
want, you may be able to work around the issue by bringing the data
into the process with a method like +[NSData dataWithContentsOfURL:]
(I don't see a CF equivalent, but I may be going blind)

It's just hidden in the Core Foundation References:

CFURLCreateDataAndPropertiesFromResource() from Core Foundation URL Access Utilities Reference

http://developer.apple.com/documentation/CoreFoundation/Reference/CFURLAccessUtils/Reference/reference.html


_______________________________________________

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: CGImageSourceCreateFromURL failed with error -11
      • From: "James Trankelson" <email@hidden>
References: 
 >Re: CGImageSourceCreateFromURL failed with error -11 (From: "Gary L. Wade" <email@hidden>)
 >Re: CGImageSourceCreateFromURL failed with error -11 (From: "James Trankelson" <email@hidden>)
 >Re: CGImageSourceCreateFromURL failed with error -11 (From: "Ken Ferry" <email@hidden>)

  • Prev by Date: Re: Core Data question
  • Next by Date: Re: autorelease CGImageRef?
  • Previous by thread: Re: CGImageSourceCreateFromURL failed with error -11
  • Next by thread: Re: CGImageSourceCreateFromURL failed with error -11
  • Index(es):
    • Date
    • Thread