Subj : Re: JS_HandleTrap unhandled exception To : netscape.public.mozilla.jseng From : Mike Moening Date : Fri Apr 01 2005 11:40 am Are you sure this is enough? There could be 50 other threads executing the same script in other contexts while 2 other threads are each running a debugger instance on 2 more contexts. Doesn't having the trapList and watchList at the runtime level pose a possible syncronization problem? Specifically in the HandleTrap function? "Brendan Eich" wrote in message news:d2j3j4$3oj1@ripley.netscape.com... > > You have to acquire and release your own lock around calls to > JS_SetTrap, JS_ClearTrap, etc. Since you are the only debugger in > process, no one but your threads might run your code, so your lock is > sufficient to serialize access. > > /be .