After a few weeks the memory usage working set of the sidebar. Without a way to identify the source of memory leaks, i simply assume it is the rumored XMLHttpRequest closure problem.
Although in my case i'm not doing it asynchronously. Also, DOM objects and JavaScript objects live in different memory spaces, so if you have circular references like. Your question is too old to be affected with this, but for anyone who happens to run across it later Windows 7 64bit SP1 introduced a sidebar.
The suggested workaround in this blog post worked for me. This is a bit of a late answer but I noticed this had gone unanswered. Looking at your code, you're running synchronously and there are no circular references. I doubt that is the source of the memory leak and it's likely to be somewhere else in your code. I've come across memory leaks in Windows Desktop Gadgets before and the biggest one I've found is when dynamically adding script tags to the document for instance, when using JSON callback methods from a web service.
Incidentally, the browser checks you're running are almost completely redundant. I would recommend just using the following single line to replace it:. Two years later, I get an up vote here and rediscover the question and the answer occurs to me straight away.
Note: You shouldn't use synchronous XMLHttpRequests because, due to the inherently asynchronous nature of networking, there are various ways memory and events can leak when using synchronous requests.
I'm struggling a little to find out if this is true or just added by some random person to aid fear mongering it is a wiki, after all , but perhaps this is the explanation for your memory leak. How are we doing? Please help us improve Stack Overflow. Report abuse. Details required :. Cancel Submit. Ravinath P.
However, we need some more information about the issue to assist you better. Please, help me answer these questions. What gadgets are installed? Were there any changes made to the computer prior the issue? I have a couple of troubleshooting of steps which should assist you with this issue. Save my name, email, and website in this browser for the next time I comment.
Notify me of follow-up comments by email. Notify me of new posts by email. This site uses Akismet to reduce spam. Learn how your comment data is processed. All Alternatives Android Apps Games.
0コメント