On Apr 22, 1:29 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > David Wimsey wrote: > > The JavaScript portion seems to be a problem however. In the code > > below, everything looks and works find up until the JS_SetProperty > ... > > When JS_SetProperty is called, if I step into the function in the > > debugger, I see that on line 3531 of jsapi.c there is a call to > > CHECK_REQUEST(cx) > > See <http://developer.mozilla.org/en/docs/JS_BeginRequest>. Basically, you > need > to call JS_BeginRequest/JS_EndRequest around JSAPI calls. > > -Boris
Thanks, I didn't expect an answer so quick! I was hoping it would be something simple. I just wrapped the portion of the function that deals with javascript in those calls and everything looks good. Are these functions required now due to Gecko 1.9 using JS_THREADSAFE, and that the 1.8 branch did not? _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
