Subj : Re: Mixing up parameters in setProperty callback To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Mon Dec 15 2003 02:34 pm > The reason that symptom bites is because without the JS_ShutDown call, > the deflated string cache holds onto char[] strings decimated from JS > strings due to calls to JS_GetStringBytes, an ancient API that "cannot > fail" and that takes no cx parameter, associating each such > chopped-down-to-8-bit-char string copy with the 16-bit-char JSString > GC-thing whence it was chopped. Gotcha. I'm guessing that JS_GetStringChars is the replacement. That'll help tremendously. > Just curious: why do you have more than one runtime? Why do you destroy > all runtimes and then create a new one? It's somewhat of an accident and a precaution. In my bridge code testing routines I create and destroy numerous runtimes so each test starts fresh. I imagine someone working with multiple threads and/or scripting distant components of an application may be creating & destroying in the same way (particularly with bad or novice design). Thanks, Sterling .