• 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: CALayer contents memory leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer contents memory leak


  • Subject: Re: CALayer contents memory leak
  • From: David Duncan <email@hidden>
  • Date: Tue, 4 Nov 2008 10:59:28 -0800

On Nov 4, 2008, at 10:47 AM, Adam Fedor wrote:


On Nov 4, 2008, at 10:05 AM, David Duncan wrote:
While I don't see a leak in here, it can never hurt to simplify your code. Try this instead.

Thanks, that is simpler, but it doesn't solve the problem. I've tried many things. The easiest way to solve the problem is to comment out this line:


//[rootLayer setContents: (id)imageRef];

Unfortunately, the app is not too useful in that case.


As others have said, you should be certain that this really is a memory leak. Just because memory usage increases does not indicate a leak, and in fact many parts of the OS can cause memory usage to go up without leaks as there are a number of in-memory caches that are created in order to speed up certain operations. You are likely hitting one of these caches.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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: 
 >CALayer contents memory leak (From: Adam Fedor <email@hidden>)
 >Re: CALayer contents memory leak (From: David Duncan <email@hidden>)
 >Re: CALayer contents memory leak (From: Adam Fedor <email@hidden>)

  • Prev by Date: Forcing garbage collection, freeing up memory, thrashing
  • Next by Date: Re: Forcing garbage collection, freeing up memory, thrashing
  • Previous by thread: Re: CALayer contents memory leak
  • Next by thread: Re: CALayer contents memory leak
  • Index(es):
    • Date
    • Thread