Subj : User Breakpoints ( int 3) from js_PurgeDeflatedStringCache To : netscape.public.mozilla.jseng From : Jaspreet Date : Mon May 23 2005 01:48 pm Hi, My Spidermonkey JS Engine and the application is built _without_ the JS_THREADSAFE. My application is built as Debug Multithreaded DLL. However the calls to Spidermonkey are from one single thread. This thread is woken from time to time and calls to spidermonkey are controlled with a mutex (the behaviour is same without mutex locks also) At any point of time more than one runtimes might be active. Each runtime has its own context and doesnot share variables with the other runtime. When i try to Destroy a context ( followed by destroy runtime ) i get "User Breakpoints" ( int 3) from "js_PurgeDeflatedStringCache" if i just "continue" from the "user Breakpoints" The application continues without crashing.... however i not sure if Destroy context/runtime is releasing the memory back. As the application starts dying because of memory starvation. Can someone point me to the likely causes for this. I tried browsing the archives of this newsgroup.. and eliminated the following potential causes : o i am not freeing the memory from GetStringBytes, instead it is copied to a buffer o I do not use JS_NewString... Regards Jaspreet .