Subj : Re: GC Question To : netscape.public.mozilla.jseng From : sukhisoul Date : Wed May 26 2004 07:30 am Brendan Eich wrote in message news:<40B23587.5080601@meer.net>... > It's not. http://www.mozilla.org/js/spidermonkey/gctips.html says what > the local roots are, and vp is not among them. > Thanks. Is there any reason why its not rooted? I know my life would be much better, if it were already rooted. > > Did you really nest a GC within code that followed > > array = JS_NewArrayObject(cx, 0, NULL); > *vp = OBJECT_TO_JSVAL(array); > Yes, I need to create many objects and store them as array elements. MA .