• 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
Garbage collection and root objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Garbage collection and root objects


  • Subject: Garbage collection and root objects
  • From: Thomas Davie <email@hidden>
  • Date: Fri, 28 Nov 2008 15:56:01 +0100

Hi,
I'm having a problem with a simple garbage collected app in which my NSDocument subclass appears to be becoming invalid (without the finalizer being called though). This only happens on the release build, so I guess it's something to do with the optimizing compiler using a less conservative garbage collection scheme.


My best guess is that I'm not marking the document as a root object. Do I need to jump through extra hoops to stop the GC touching this object, or is my bug elsewhere?

Thanks

Tom Davie
_______________________________________________

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: Garbage collection and root objects
      • From: "Raphael Sebbe" <email@hidden>
  • Prev by Date: ... not sure if this is a KVO or a Core Audio problem with my code
  • Next by Date: question re: mem leak analysis and RSIZE
  • Previous by thread: Re: ... not sure if this is a KVO or a Core Audio problem with my code
  • Next by thread: Re: Garbage collection and root objects
  • Index(es):
    • Date
    • Thread