Subj : Still multithreading problems, but more nailed down To : netscape.public.mozilla.jseng From : "Andreas Podgurski" Date : Sat Jan 25 2003 07:40 pm Hi again! Seems to be quiet exotic to use SpiderMonkey in the multithreaded version, because nobody seems to answer such questions .I'm still having heavy problems with its stability. In my app, there is a main thread, which does visual output, a script is executed in a seperate thread. I figured out, that the application doesn't crash, if I call JS_BeginRequest on the main thread, too. But in this case, the script isn't executed anymore, JS_EvaluateScript seems to hang in compilation, because none method of the used objects is called and it doesn't return from JS_EvaluateScript. If I call JS_BeginRequest only on the scripted thread, it crashes in the looping operator of the script, which keeps that alive (In this case not equal, but others don't work, too). If I call JS_BeginRequest on the main thread only, it doesn't execute the thread, too. In which cases is JS_BeginRequest really needed? The documentation doesn't go very deep in there. Any idea, if this is a bug in JavaScript? If so, how to become shure of it? I have to advance soon, because I have deadlines to hold, so it would be nice, if somebody could give me a hand on this... Thanks in advance, Andreas Podgurski .