Alexandra i use instead load - this code, it’s correctly ?
dhtmlx.ajax(url, function(text){
var data = dhtmlx.DataDriver.json.toObject(text);
chart1.parse(data,"json");
});
Alexandra i use instead load - this code, it’s correctly ?
dhtmlx.ajax(url, function(text){
var data = dhtmlx.DataDriver.json.toObject(text);
chart1.parse(data,"json");
});
with parse function memory steel leak …
I wrote about parse only for testing case.
dhtmlx.ajax also uses Ajax loading (ActiveX in case of old IE version). dhtmlx.ajax and then parse is the same as load.
i use your samle that you attached in that topic and your library
demo with dot’s in attachment
Locally the issue is not reproduced. We tested the demo on different computers.
Alexandra IE9 have not this bug with memory ???
i like ie8 that when refresh the chart i don’t see page winking
it’s possible refresh data without winking on firefox ?
and i have OS windows xp, i can’t use IE9 … only 8 …
if you use sIEve for see leaks home.wanadoo.nl/jsrosman/ you can see that leaking take place from tag div and canvas
and if you use Drip.exe you can see that leaks appears when dhtmlxchart library create dynamic div’s for chart
We will consider the issue again. If the problem is found in our code, it will be fixed in the next version.
it’s possible refresh data without winking on firefox ?
Chart doesn’t provide any ready solutions for this.
You can try to use another approach - refresh chart only when its data have changed (you may consider socket.io). In this case you could decrease the number of redrawing.
Alexandra can you please tell me if you found a bug with memory leak in IE8 ?
i try open your page in the IE9 but memory steel leaking … and it’s exactly because dhtmlxchart library incorrectly work with DOM object (maybe because you don’t clear old reference)
by the way if you open in the same window new url - used memory don’t free for new page
Alexandra maybe when refresh the page i can clean memory manualy with event window.onunload ???
Hi,
Alexandra can you please tell me if you found a bug with memory leak in IE8 ?
We checked memory usage in Task Manager - no leaks (we used parse method instead of load, I already wrote about Ajax and IE).
Alexandra maybe when refresh the page i can clean memory manualy with event window.onunload ???
Chart automatically calls destructor() method on unload.
Alexandra can you please show your code with autorefresh chart by parse metod where you have’t leak ???