• 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: Cant get Garbage Collection to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cant get Garbage Collection to work


  • Subject: Re: Cant get Garbage Collection to work
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 28 Mar 2008 11:38:51 -0700


On Mar 28, 2008, at 11:20, Dominik Pich wrote:

exactly my point :) there shouldn't be 'any' memory related errors.
GC seems to be OFF like my 2. 'check' showed:

>I also added this 'check' to my awakeFromNib
>	if([[NSGarbageCollector defaultCollector] isEnabled])
>		NSLog(@"GC on");
>	else
>		NSLog(@"GC off");
>and according to that GC is off..

But you're still not saying what the errors actually are. They may not be an indication that there is a problem with GC, but that a different issue has been exposed by turning on GC.


For example, you will get nuisance errors like this:

malloc: free_garbage: garbage ptr = 0x126b5f0, has non-zero refcount = 1


in the log when you open a window that uses the system template images that IB provides you. AFAIK this is a (harmless) bug in Leopard that will get fixed one of these days, and there is nothing to do in the meantime except ignore the messages.


_______________________________________________

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: 
 >Cant get Garbage Collection to work (From: Dominik Pich <email@hidden>)
 >Re: Cant get Garbage Collection to work (From: Quincey Morris <email@hidden>)
 >Re: Cant get Garbage Collection to work (From: Dominik Pich <email@hidden>)

  • Prev by Date: Re: Cant get Garbage Collection to work
  • Next by Date: Re: Cant get Garbage Collection to work
  • Previous by thread: Re: Cant get Garbage Collection to work
  • Next by thread: Re: Cant get Garbage Collection to work
  • Index(es):
    • Date
    • Thread