Subj : What does SpiderMonkey own? To : netscape.public.mozilla.jseng From : Sterling Bates Date : Wed May 26 2004 09:28 pm Serious frustrations here :) I'm trying to help out a user of my bridge code and the garbage collector is taking me for a ride. I think (because I don't know) that I need to know what _exactly_ SpiderMonkey owns/frees when I add a property/GC. I'm getting "access violation at address 75636578 read of address 75636578". I'm sure that the fact that both addresses are the same is significant, and I feel silly for not knowing why off the top of my head, but I'm going to find out . More details: I'm using RTTI to recreate a live Delphi object within SpiderMonkey. When I add the methods (which are simply JSObject properties whose class has the call property defined) the GC will throw the above AV. If I do not add the methods, everything is completely kosher. I'm simply using JS_DefineProperty and JS_SetPrivate on the defined object (would reserved slots work better?). There's nothing unusual about this code, it quite resembles the property scanner which works perfectly. Of course, I may be better off creating a generic JSNative to handle method calls. Any help is appreciated, Sterling .