Subj : Threadsafe JS crashes To : netscape.public.mozilla.jseng From : "Andreas Podgurski" Date : Sun Jan 12 2003 02:07 am Hi there! I have to use the SpiderMonkey engine in a multithreaded environment under windows XP. For this, I recompiled the engine with JS_THREADSAFE enabled and added the actual NSPR version 4.2.2. Everything is compiled as debug executables. Compilation worked fine so far, but after starting the app, it crashes. Funnily it seems to run some seconds, if started with "run", but crashes without showing me the crashpoint in the debugger. If I start it in debug mode, it fails in compiling the script, which is loaded in the thread. The JS environment is initialized in the main thread and both threads are assigned with JS_BeginRequest. The compilation fails in js_lock in the assertion JS_ASSERT(me == CurrentThreadId());. Did I miss something in the documentation, is this a bug or does anyone has another idea? Further, I have some extra questions: The non-threaded version of SpiderMonkey is called js32.lib by default. Is there a default name for the threadsafe version (e.g. js32t.lib?)? Or should I link the engine directly into my application in this case? Thanks in advance, Andreas Podgurski .