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

ImageBrowser and Garbage Collection


  • Subject: ImageBrowser and Garbage Collection
  • From: "Jeffrey J. Early" <email@hidden>
  • Date: Thu, 8 Nov 2007 00:38:25 -0800

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


  • Follow-Ups:
    • Re: ImageBrowser and Garbage Collection
      • From: Michael Jurewitz <email@hidden>
  • Prev by Date: Re: Cocoa Python broken in Leopard??
  • Next by Date: How to ensure minimum version requirement
  • Previous by thread: Re: NSStatusItem problem
  • Next by thread: Re: ImageBrowser and Garbage Collection
  • Index(es):
    • Date
    • Thread