Subj : Creating Class Globally To : netscape.public.mozilla.jseng From : Brian Genisio Date : Mon Apr 19 2004 03:57 pm Hey all, Is there any way to create a Class for use in all contexts? I have a program running with many threads, and many contexts per thread. In addition, I have about 40 classes I need to initialize using JS_InitClass. I also have a context in the main thread that is alive as long as any thread is alive. It seems like a waste to call InitClass for _every_ context. Is there a way to use the classes created in the main context? I tried this, but when I try to construct an object with JS_ConstructObjectWithArguments, it returns NULL for the object. Do I need to do anything to tell the context to use classes defined in a different context? Thanks, Brian .