Subj : Re: Garbage Collection Woes To : netscape.public.mozilla.jseng From : David Bradley Date : Fri May 02 2003 12:57 pm Stephen Jones wrote: > I'm definately passing the address of JSObjects to be rooted. I have one > base C++ class that handles this. > "Brendan Eich" wrote in message > news:3EB1C5E9.60802@meer.net... >>Make sure you aren't passing object pointers or jsvals by value to >>JS_Add*Root. You have to pass the address of a JSObject* or jsval to >>register a root. Pay close of attention to what Brendan said. He said to pass in the address of a JSObject pointer, not the address of a JSObject, which would mean JSObject**, not JSObject*. So if you have JSObject *obj, you'd pass in &obj. That may have been what you meant, but your reply seemed to indicate JSObject* rather than JSObject**. David .