• 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: Is CGImage... thread-safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is CGImage... thread-safe?


  • Subject: Re: Is CGImage... thread-safe?
  • From: Steve Mills via Cocoa-dev <email@hidden>
  • Date: Wed, 27 May 2020 17:03:06 -0500

> I can't recall/reproduce, but it was definitely *inside*
> CGImageSourceCreateThumbnailAtIndex().
>
> If there is no image a tinder 0, shouldn't it just return NULL gracefully?

We don’t know that. There are many routines that throw exceptions when the
index is out of bounds. You should be calling CGImageSourceGetCount first to
make sure there’s an image at 0.

Steve via iPad


_______________________________________________

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: Is CGImage... thread-safe?
      • From: Steve Christensen via Cocoa-dev <email@hidden>
References: 
 >Re: Is CGImage... thread-safe? (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Localization under Catalina
  • Next by Date: Re: Is CGImage... thread-safe?
  • Previous by thread: Re: Is CGImage... thread-safe?
  • Next by thread: Re: Is CGImage... thread-safe?
  • Index(es):
    • Date
    • Thread