Re: Garbage collection and root objects
Re: Garbage collection and root objects
- Subject: Re: Garbage collection and root objects
- From: "Raphael Sebbe" <email@hidden>
- Date: Fri, 28 Nov 2008 18:36:47 +0100
Hi,
what makes you think the document is becoming invalid?
You don't have to mark it in any way, if the document is open, it is stored
in the documentController which is itself hooked by some GC root.
Can you give more information?
Raphael
On Fri, Nov 28, 2008 at 3:56 PM, Thomas Davie <email@hidden> wrote:
> 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
>
_______________________________________________
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