Forum Moderators: open
What I did, so far, is:
--
var ob = new myObject();
ob = null;
--
this looks like it's working, in the sense that right after object creatin, "ob" is in fact null...
The object is living by it's own, thou and it is still alive (can't call it from outside, by it lives in memory and cpu).
What I am asking is if it's somehow possible to destroy it with an inner function...
Of course trying
--
this = null;
--
doesn't work...
ANY help appreciated.
--
Manu
Apparently, the memory isn't freed even by refreshing or leaving the document, but only by closing the window itself.
If you are using inner functions, it's possible that they might be the cause rather than the solution. (Shaky ground for me still though).