Subj : Problem with the context To : mozilla-jseng@mozilla.org From : bsanfrutos@tcpsi.es (Baltasar San Frutos) Date : Wed Sep 17 2003 03:09 pm Hello I believe that I have a problem with the context. This is the JAVA source. ..... Context cx = Context.enter(); Scriptable scope = cx.initStandardObjects(null); ScriptableObject.defineClass(scope, api.dom.Window.class); Object[] arguments = { document.getBody(), respuesta, _location_url }; Scriptable myWindow = cx.newObject(scope, api.dom.Window.class.getName(), arguments); scope.put("window", scope, myWindow); ScriptableObject.defineClass(scope, api.dom.Screen.class); Screen screen = (Screen) cx.newObject(scope, api.dom.Screen.class.getName(), null); scope.put("screen", scope, screen); ScriptableObject.defineClass(scope, ObjectGenerico.class); ObjectGenerico objThis = (ObjectGenerico) cx.newObject(scope, ObjectGenerico.class.getName(), null); scope.put("this", scope, objThis); executeSource(source); ctx.setCachingEnabled(false); ctx.setCachingEnabled(true); ctx.exit(); ..... As it is seen, I add to the context several objects, Soon I execute the JavaScript source , after executing the JavaScript source clean cache of the context and I exit the context, but them object that I have added, does not erase follow in memory, that can I make to erase these objects? Thank you very much .