• 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: Core Graphics wants 10 petabytes of RAM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Graphics wants 10 petabytes of RAM


  • Subject: Re: Core Graphics wants 10 petabytes of RAM
  • From: Thomas Davie <email@hidden>
  • Date: Tue, 7 Sep 2010 13:11:58 +0100

On 7 Sep 2010, at 13:10, Guillem Palou wrote:

>
> On Sep 7, 2010, at 2:07 PM, Thomas Davie wrote:
>
>> I'm having a problem with CoreGraphics periodically deciding it wants to allocate an enormous amount of RAM, the code in question is simply trying to create an NSImage from raw data:
>>
>>    CGContextRef context = CGBitmapContextCreate(imgData,
>>                                              width,
>>                                              height,
>>                                              8,
>>                                              4 * width,
>>                                              colourSpace,
>>                                              kCGBitmapByteOrderDefault | kCGImageAlphaPremultipliedLast);
>>    CGImageRef cgImage = CGBitmapContextCreateImage(ctx);
>
> Should be CGImageRef cgImage = CGBitmapContextCreateImage(context); ??

Hah! well spotted.  I wonder why this ever worked!

Schrodingbug!

_______________________________________________

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

References: 
 >Core Graphics wants 10 petabytes of RAM (From: Thomas Davie <email@hidden>)
 >Re: Core Graphics wants 10 petabytes of RAM (From: Guillem Palou <email@hidden>)

  • Prev by Date: Re: Core Graphics wants 10 petabytes of RAM
  • Next by Date: NSAttributedString to / from Pasteboard....
  • Previous by thread: Re: Core Graphics wants 10 petabytes of RAM
  • Next by thread: NSAttributedString to / from Pasteboard....
  • Index(es):
    • Date
    • Thread