• 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: ImageBrowser and Garbage Collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ImageBrowser and Garbage Collection


  • Subject: Re: ImageBrowser and Garbage Collection
  • From: Michael Jurewitz <email@hidden>
  • Date: Thu, 8 Nov 2007 02:05:48 -0800

While I believe this is a known issue, please file a bug at bugreporter.apple.com.

Please also let me know the Radar # once you have filed it.

-Mike Jurewitz

On Nov 8, 2007, at 12:38 AM, Jeffrey J. Early wrote:

I'm attempting to use an IKImageBrowserView in an application with garbage collection, but have run into serious memory problems.

The problem is easily produced using the ImageBrowser sample code:
	http://developer.apple.com/samplecode/ImageBrowser/index.html

If you compile and build the application under the default conditions (no gc), adding about 500 typical digital photos barely budges the memory footprint of the app. However, if you enable garbage collection and do the same, the app will consume its 4.0 GB of ram, before hitting the ceiling and crashing. Even a more mundane experiment of adding a few photos shows that it doesn't manage to reclaim its memory after loading the photos.

Within the application a thread it spawned to add new photos, but it seems to register with garbage collector just fine and wouldn't be a problem memory-wise anyway. The problem, from what I can tell, is a separate thread launched by IKImageBrowserView for generating the thumbnails that doesn't get it's memory reclaimed.


Being new garbage collection, I'm not sure what to make of this -- any insight on how to fix this???


Jeffrey
_______________________________________________

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: 
 >ImageBrowser and Garbage Collection (From: "Jeffrey J. Early" <email@hidden>)

  • Prev by Date: How to ensure minimum version requirement
  • Next by Date: Application crashes due to NSLog in NSWorkspace isFilePackageAtPath
  • Previous by thread: ImageBrowser and Garbage Collection
  • Next by thread: How to ensure minimum version requirement
  • Index(es):
    • Date
    • Thread