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

kCGImageStatusInvalidData


  • Subject: kCGImageStatusInvalidData
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Mon, 17 Feb 2020 10:20:16 +0100

[From the mailing list, I have received an empty mail, so I am going to try
again]

In my screensaver , I am loading images using this piece of code:

   CGImageSourceRef sourceRef = CGImageSourceCreateWithURL( (CFURLRef) url,
NULL );
   if ( sourceRef == NULL )
   {
        ...
   }
   CGImageSourceStatus imgstatus = CGImageSourceGetStatus( sourceRef );
   if ( imgstatus != kCGImageStatusComplete )
   {
        ...

The url is an absolute path. So far, this code has always worked.

Now, under Catalina, at least with one user, I get kCGImageStatusInvalidData as
a return value from  CGImageSourceGetStatus().
The image files have not changed, so I don't see why it should return an error
now.
The images reside on an external volume, but, again, it used to work under
Mojave.

Unfortunaltey, I could not find any hints as to why this error might occur.
(I searched the dev docs, and the web.)

Does anyone have an idea, what might be causing this error?

Thanks a lot in advance.


Best regards, Gabriel

_______________________________________________

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

  • Prev by Date: kCGImageStatusInvalidData
  • Next by Date: More fun with CGImageSourceCreateWithURL
  • Previous by thread: kCGImageStatusInvalidData
  • Next by thread: More fun with CGImageSourceCreateWithURL
  • Index(es):
    • Date
    • Thread