I developed a client side application and unfortunately I suspect memory leaks.
The application has a lot of private clone objects, and at the end of each function I dispose the objects by set them to null. (foo = null;)
My question is, how should I dispose of the objects?
Is it enough to use foo = null?
Also, are there any tools that can help me identify the problem?
SOLUTION
finally my problem caused of a wrong use of the jquery progress bar
function updateProgressBar() {
if (!handle) //by adding this, the problem solved.
return;
jQuery("#progressbar").progressbar({
value: ++pct
});
if (pct >= 100) {
clearInterval(handle);
pct = 0;
setInterval("updateProgressBar()", 300);
}
}