Subj : Re: JS_DestroyContext() access violation.. To : netscape.public.mozilla.jseng From : Brendan Eich Date : Thu Feb 27 2003 09:58 am njaguar wrote: >Okay, I have this persistant core runtime that stays resident in >memory, and certain things trigger scripts to run (ie, I create new >contexts)... > >However, occasionally, it crashes with an access violation on the >JS_DestroyContext() line. I am completely baffled as to why it's doing >this.. Am I supposed to call something else prior to this for cleanup? >Etc.. Here's a stack dump of what's going on: > Get a real stack in a debugger, first. Also, are you using multiple threads? If so, are you following the request model (using JS_BeginRequest and JS_EndRequest, etc.)? You should be using JS1.5 SpiderMonkey RC5 or the cvs trunk. /be .