Subj : Re: SpiderMonkey GC problem? To : netscape.public.mozilla.jseng From : Shanti Rao Date : Wed Jan 19 2005 08:46 am Brendan Eich wrote: > The stack suggests you have kept a pointer to a JSObject without rooting > it via JS_AddNamedRoot. > > You seem not to have read the API docs or gctips.html under > http://www.mozilla.org/js/spidermonkey/ -- please do so. > > GC means you don't call free on the GC'd data structures. So don't even > worry about that. > > /be Did you use JS_AddRoot(cx, obj)? You should do JS_AddRoot(cx,&obj) instead. That's a common source of problems. Shanti .