Subj : Re: JS_HandleTrap unhandled exception To : netscape.public.mozilla.jseng From : Brendan Eich Date : Thu Mar 31 2005 08:02 pm Mike Moening wrote: > I figured out the problem. > > Confutious say: > It is better to use JS_ClearTrap than to use JS_SetTrap to clear a trap... > > Doh! Also, did you say "other thread"? The JS debugger API is designed to be called from a single-threaded debugger, or a one-thread at a time debugger, or a debugger that is carefully multi-threaded with its own locking layer above the jsdbgapi.c code, which you'll notice does not lock critical sections, e.g. for rt->trapList access and update. /be .