• 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: Robert Douglas <email@hidden>
  • Date: Fri, 28 Mar 2008 11:42:46 -0700

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@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

_______________________________________________

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

_______________________________________________

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: Cant get Garbage Collection to work
      • From: Quincey Morris <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: PoseAsClass and NSColorWell (what Apple giveth, Apple taketh away...)
  • Previous by thread: Re: Cant get Garbage Collection to work
  • Next by thread: Re: Cant get Garbage Collection to work
  • Index(es):
    • Date
    • Thread