Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sunil on Feb 11, 2009 03:47
open dhtmlx forum
Grid Memory issue

Hi,

When I load 1000 rows into a grid and IE memory as seen in Windows Task Manager increases... say by 15MB... now I clear the grid using "mygrid.destructor()" it doesnt bring down the memory used... How will know if "mygrid.destructor()" is actually clearing the memory?

Thanks,
Sunil.G
Answer posted by dhxSupport on Feb 11, 2009 05:06
Javascript doesn't allow clear memory directly, call of grid.destructor removed all code and html elements from document, but it will be cleared by garbage collector of IE. Functionality of gargabe collector can't be controlled directly from js code
Answer posted by chittaranjan mohapatra on Feb 11, 2009 21:49
the best way to check window's IE browser has cleared the memory or not, just try to minimize the IE browser window, it will reduce the memory size aswell as it will reflect on task manager, what i personally thinks is it is due to the browser instance get initialized flushes memory by doing theis.... :)