Subj : Re: JS_AddNamedRoot() and finalizer To : Matthew Mondor From : Brendan Eich Date : Mon Aug 23 2004 09:48 am Matthew Mondor wrote: > Hmm just notice how some statements didn't make any sense, since the > object is added to the root it isn't prone to GC, and probably that > the finalizer method is not considered useful and thus never called. I > maybe assumed that destroying a context would force destruction of the > objects and call the finalizer, but this is probably not so... Probably not... ;-) So you made a stuck root. You should be able to fix that, but first: Why do you need a global root? Assuming you do need a global root: Any code that adds such a root must have an explicit, mandatory or reference-counting protocol to tell it when to remove that root. /be .