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

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

References: 
 >Garbage collection and root objects (From: Thomas Davie <email@hidden>)

  • Prev by Date: Re: -[NSWindowController window] fails
  • Next by Date: Re: Effectively fetching console messages
  • Previous by thread: Garbage collection and root objects
  • Next by thread: question re: mem leak analysis and RSIZE
  • Index(es):
    • Date
    • Thread