Skip navigation.
 
mlRe: Cant get Garbage Collection to work
FROM : Robert Douglas
DATE : Fri Mar 28 19:42:46 2008

Where do you have GC enabled?  My experience has been that you have to 
set it for each target as the project-level setting gets overridden.

On 28-Mar-08, at 11:20 AM, 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..
>
> On Mar 28, 2008, at 5:25 PM, Quincey Morris wrote:

>>
>> On Mar 28, 2008, at 04:15, Dominik Pich wrote:
>>

>>> First then I set the GCC Flag: Garbage Collection _required_: -
>>> fobj-gc-only
>>>
>>> I coded my cocoa document based application as if there were GC... 
>>> no retain/release and no dealloc..
>>>
>>> I started and bigidibam... over-releases -- guess something got 
>>> autoreleased which I ofcourse didnt retain.

>>
>> Over-releases? There's no such thing with gc-only. (Except, of 
>> course, CF objects still have retain/release counts, but if you 
>> ignore those you end up with leaks, not "over-releases".)
>>
>> What are the actual errors you're seeing? Something was logged?
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (<email_removed>)
>>
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>>
>> This email sent to <email_removed>

>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>

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