Garbage collection and root objects
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