Hi again hakann,
I might have found a workaround, in main.js file.
It seems that http_request object (XMLHttpRequest) is not properly deleted after request completion. This should be automatically done, but it is not the case (I've seen a similar issue in Microsoft TechNet site).
I added a http_request.abort() at the end of each onreadystatechange handler, to force IE to release object.
This seems to work, as my explorer's memory usage is now stable (22 Mb, 359 open handles after 2 or 3 hours, to be be compared with more than 350 Mb and 2000 handles before modification).
Here is how I corrected main.js source code :
1. add a new function
function memoryleak_cleanup(http_request)
{
if (http_request.readyState == 4) // acknowledged
{
http_request.abort();
}
}
2. call it on leaking handler (server_ansvers) :
function server_ansvers(http_request)
{
if (http_request.readyState == 4)
{
if (http_request.status == 200)
{
process_data(http_request.responseText);
ansvers=0;
}
else
{
ansvers = 0;
}
memoryleak_cleanup(http_request);
}
}
3. To make it better, fix also the light on/off button, by modifying button2 function:
http_request.onreadystatechange = function() ;
becomes
http_request.onreadystatechange = function() {
memoryleak_cleanup(http_request);
};
In attachment, you'll find the modified file where all handlers are fixed.
I hope this will work for you too.
Best regards,
Christophe