• 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: ImageKit + GC = nogo? (or better... how :D)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ImageKit + GC = nogo? (or better... how :D)


  • Subject: Re: ImageKit + GC = nogo? (or better... how :D)
  • From: Thomas Goossens <email@hidden>
  • Date: Mon, 3 Dec 2007 14:21:21 +0100


The following representations will leak with GC turned on because they are using ImageIO to create thumbnails at some point:
extern NSString * const IKImageBrowserPathRepresentationType; /* NSString */
extern NSString * const IKImageBrowserNSURLRepresentationType; /* NSURL */
extern NSString * const IKImageBrowserCGImageSourceRepresentationType; /* CGImageSourceRef */
extern NSString * const IKImageBrowserNSDataRepresentationType; /* NSData */
extern NSString * const IKImageBrowserQuickLookPathRepresentationType; /* NSString or NSURL*/


I don't know about the other representations.

-- Thomas.


On Dec 3, 2007, at 2:06 PM, Dominik Pich wrote:

No good when using imagekit :/
I tried different representations.... all leak there...

Am Dec 2, 2007 um 10:48 PM schrieb Thomas Goossens:


Do you see the same memory leak if you use
CGImageSourceCreateWithData() instead of CGImageSourceCreateWithURL()?
I have an application which used CGImageSourceCreateWithURL() and it
always kept the file open even after I had realeased everything. Once
I switched to loading the file into an NSData object and then creating
the CGImageSourceRef every cleaned up nicely.

There is no leak if I use CGImageSourceCreateWithData() instead of CGImageSourceCreateWithURL().


-- Thomas.

_______________________________________________

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


_______________________________________________

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: 
 >ImageKit + GC = nogo? (or better... how :D) (From: Dominik Pich <email@hidden>)
 >Re: ImageKit + GC = nogo? (or better... how :D) (From: Thomas Goossens <email@hidden>)
 >Re: ImageKit + GC = nogo? (or better... how :D) (From: "Isaac Wankerl" <email@hidden>)
 >Re: ImageKit + GC = nogo? (or better... how :D) (From: Thomas Goossens <email@hidden>)
 >Re: ImageKit + GC = nogo? (or better... how :D) (From: Dominik Pich <email@hidden>)

  • Prev by Date: Re: ImageKit + GC = nogo? (or better... how :D)
  • Next by Date: Re: Remove custom views from NSOutlineView
  • Previous by thread: Re: ImageKit + GC = nogo? (or better... how :D)
  • Next by thread: Re: ImageKit + GC = nogo? (or better... how :D)
  • Index(es):
    • Date
    • Thread