Subj : JS_SetContextThread() in or outside of JS_BeginRequest()?? To : netscape.public.mozilla.jseng From : Damian Slee Date : Mon Sep 13 2004 06:38 pm Should JS_BeginRequest be called before or after a setting the contexts thread? In my case I have a pool of JS contexts, which can be used by various threads. But only 1 at a time. extern JS_PUBLIC_API(jsword) JS_SetContextThread(JSContext *cx); extern JS_PUBLIC_API(intN) JS_ClearContextThread(JSContext *cx) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.756 / Virus Database: 506 - Release Date: 8/09/2004 .