Subj : Re: Calling non-existent object function crashes engine To : netscape.public.mozilla.jseng From : Brendan Eich Date : Mon Sep 05 2005 10:29 pm Syd Logan wrote: >>>> JSClass objectClass = { >>>> name.c_str(), JSCLASS_NEW_RESOLVE, >>>> JS_PropertyStub, JS_PropertyStub, >>>> JS_PropertyStub, JS_PropertyStub, >>>> JS_EnumerateStub, JS_ResolveStub, I should have seen that JSCLASS_NEW_RESOLVE flag -- it changes how the resolve hook is called, so JS_ResolveStub won't do at all, as John pointed out. I'll also agree emphatically with John that you are reinventing a wheel here. It may be fun. You may be able to simplify the problem slightly so as to simplify the reinvented solution a bit. But is it worth it not to use XPCOM/XPConnect? /be .