Skip navigation.
 
mlRe: Cant get Garbage Collection to work
FROM : Quincey Morris
DATE : Fri Mar 28 19:38:51 2008

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.

Related mailsAuthorDate
mlCant get Garbage Collection to work Dominik Pich Mar 28, 12:15
mlRe: Cant get Garbage Collection to work Quincey Morris Mar 28, 17:25
mlRe: Cant get Garbage Collection to work Dominik Pich Mar 28, 19:20
mlRe: Cant get Garbage Collection to work Sherm Pendley Mar 28, 19:35
mlRe: Cant get Garbage Collection to work Quincey Morris Mar 28, 19:38
mlRe: Cant get Garbage Collection to work Robert Douglas Mar 28, 19:42
mlRe: Cant get Garbage Collection to work Quincey Morris Mar 28, 20:06
mlRe: Cant get Garbage Collection to work ugol Mar 30, 00:42