<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: GridUnload memory leak?</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on GridUnload memory leak?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18238</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18238</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for investigation.</p>
<p>Also windows unload is raised if a refresh button by exmple is clicked, that is this is not seen in your code.</p>
<p>Little confused about this</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 28 Jun 2010 11:53:18 +0300</pubDate>
        </item>
        <item>
        	<title>luweipan on GridUnload memory leak?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18209</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18209</guid>
        	        	<description><![CDATA[<p>&#160;&#160; &#160;It still has memory leak&#160;if change "$(document).mouseup" to "$(<strong>grid.hDiv</strong>).mouseup". &#160;If I comment the following lines. No more memory leak.</p>
<p><span style="white-space: pre;"> </span>/*$(window).unload(function () {</p>
<p><span style="white-space: pre;"> </span>ts = null;</p>
<p><span style="white-space: pre;"> </span>});*/</p></p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 19:10:19 +0300</pubDate>
        </item>
        <item>
        	<title>tony on GridUnload memory leak?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18201</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18201</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for the investigation.</p>
<p>If you replace</p>
<p>$(document).mouseup(function (e) {</p>
<p>if(grid.resizing) {	grid.dragEnd(); return false;}</p>
<p>return true;</p>
<p>})</p>
<p>with</p>
</p>
<p>$(<strong>grid.hDiv</strong>).mouseup(function (e) {</p>
<p>if(grid.resizing) {	grid.dragEnd(); return false;}</p>
<p>return true;</p>
<p>})</p>
</p>
<p>Does this happen?</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 15:50:29 +0300</pubDate>
        </item>
        <item>
        	<title>luweipan on GridUnload memory leak?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18199</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18199</guid>
        	        	<description><![CDATA[<p>I got it. These codes in the grid.base.js cause memory leak:</p>
<p><span style="white-space:pre"> </span>$(document).mouseup(function (e) {</p>
<p><span style="white-space:pre"> </span>if(grid.resizing) {	grid.dragEnd(); return false;}</p>
<p><span style="white-space:pre"> </span>return true;</p>
<p><span style="white-space:pre"> </span>});</p>
<p><span style="white-space:pre"> </span>...</p>
<p><span style="white-space: pre;"> </span>$(window).unload(function () {</p>
<p><span style="white-space: pre;"> </span>ts = null;</p>
<p><span style="white-space: pre;"> </span>});</p>
<p>&#160;These codes bind events when creating each grid. And never free.</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 14:11:11 +0300</pubDate>
        </item>
        <item>
        	<title>luweipan on GridUnload memory leak?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18198</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18198</guid>
        	        	<description><![CDATA[<p>&#160;&#160; &#160;My datatype function is empty. No ajax request. The example I provided is the whole test case. You can paste in a file and run the testcase.</p>
<p>&#160;&#160; &#160;Though I GridUnload right after creating the grid, It should not has any memory leak. I think something not release in GridUnload.</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 13:45:55 +0300</pubDate>
        </item>
        <item>
        	<title>tony on GridUnload memory leak?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18157</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18157</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>1. I see datatype as function in your code. This means that you made your own ajax request. Until this request comme to the grid they is already destroyed. That is: the request (data) is in your memory not knowing where to go.</p>
<p>The real test is:</p>
<p>Sorry edit:</p>
<p>In the succes (or complete) event in your ajax request call the GridUnload after a delay.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 24 Jun 2010 13:33:37 +0300</pubDate>
        </item>
        <item>
        	<title>luweipan on GridUnload memory leak?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18155</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18155</guid>
        	        	<description><![CDATA[<p>&#160;&#160; &#160;I try setInterval(function() { }, 200). And still has memory leak. Chrome occupy 38M memory at the begin. Chrome&#160;occupy 600M memory after run this test case for one hour.</p>
<p>&#160;&#160; &#160;IE 8 and Firefox 3.5.5 have the same problem.</p>
<p>&#160;&#160; &#160;The jqGrid version is 3.7.1. The operating system is Windows XP.</p>
<p><strong><br /></strong></p>
<p>&#60;html&#62;</p>
<p>&#60;head&#62;</p>
<p>&#60;script type=&#39;text/javascript&#39; src=&#39;jquery.jqGrid/js/jquery-1.4.2.min.js&#39;&#62;&#60;/script&#62;</p>
<p>&#60;link rel="stylesheet" href="jquery/css/smoothness/jquery.ui.all.css" type="text/css" media="screen"&#62;</p>
<p>&#60;link rel="stylesheet" href="jquery.jqGrid/css/ui.jqgrid.css" type="text/css" media="screen"&#62;</p>
<p>&#60;script type="text/javascript" src="jquery.jqGrid/js/i18n/grid.locale-en.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="jquery.jqGrid/src/grid.base.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="jquery.jqGrid/src/grid.common.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="jquery.jqGrid/src/grid.custom.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="jquery.jqGrid/src/grid.formedit.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="jquery.jqGrid/src/grid.inlinedit.js"&#62;&#60;/script&#62;</p>
<p>&#60;SCRIPT LANGUAGE="JavaScript"&#62;</p>
<p>$(document).ready(function(){</p>
<p><span style="white-space:pre"> </span>setInterval(function() {</p>
<p><span style="white-space:pre"> </span>$("#table").jqGrid({</p>
<p><span style="white-space:pre"> </span>datatype:function() {},</p>
<p><span style="white-space:pre"> </span>height: 250,</p>
<p><span style="white-space:pre"> </span>width: 300,</p>
<p><span style="white-space:pre"> </span>colNames:[&#39;id&#39;, &#39;name&#39;, &#39;phone&#39;],</p>
<p><span style="white-space: pre;"> </span>colModel:[</p>
<p><span style="white-space: pre;"> </span>{name:&#39;id&#39;},</p>
<p><span style="white-space: pre;"> </span>{name:&#39;name&#39;},</p>
<p><span style="white-space: pre;"> </span>{name:&#39;phone&#39;}</p>
<p><span style="white-space: pre;"> </span>],</p>
<p><span style="white-space: pre;"> </span>rowNum:10</p>
<p><span style="white-space: pre;"> </span>});</p>
<p><span style="white-space: pre;"> </span>$("#table").GridUnload();</p>
<p><span style="white-space: pre;"> </span>}, 200);</p>
<p>});</p>
<p>&#60;/SCRIPT&#62;</p>
<p>&#60;/head&#62;</p>
<p>&#60;body&#62;</p>
<p>&#60;table id=&#39;table&#39; /&#62;</p>
<p>&#60;/body&#62;</p>
<p>&#60;/html&#62;</p>
]]></description>
        	        	<pubDate>Thu, 24 Jun 2010 09:57:23 +0300</pubDate>
        </item>
        <item>
        	<title>Les on GridUnload memory leak?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18147</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18147</guid>
        	        	<description><![CDATA[<p>This is not a good test because the garbage collector has no chance to kick in.</p>
</p>
<p>Try <strong>setInterval(function() { }, 200)</strong> instead of while.</p>
</p>
<p>I don&#39;t see any memory increase after 100 invocations.</p></p>
]]></description>
        	        	<pubDate>Wed, 23 Jun 2010 18:45:26 +0300</pubDate>
        </item>
        <item>
        	<title>luweipan on GridUnload memory leak?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18145</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridunload-memory-leak#p18145</guid>
        	        	<description><![CDATA[<p>Create and unload grid again and again. The browser memory grow rapidlyã€‚The browser version is 5.0.375.70</p>
<p>while(true) {</p>
<p><span style="white-space: pre;"> </span>$("#gridTable").jqGrid({</p>
<p><span style="white-space: pre;"> </span>height: 250,</p>
<p><span style="white-space: pre;"> </span>width: 400,</p>
<p><span style="white-space: pre;"> </span>colNames:[&#39;id&#39;,&#39;name&#39;],</p>
<p><span style="white-space: pre;"> </span>colModel:[</p>
<p><span style="white-space: pre;"> </span>{name:&#39;id&#39;},</p>
<p><span style="white-space: pre;"> </span>{name:&#39;name&#39;}</p>
<p><span style="white-space: pre;"> </span>],</p>
<p><span style="white-space: pre;"> </span>rowNum:10,</p>
<p><span style="white-space: pre;"> </span>});</p>
<p><span style="white-space: pre;"> </span>$("#gridTable").GridUnload();</p>
<p>}</p>
]]></description>
        	        	<pubDate>Wed, 23 Jun 2010 18:11:59 +0300</pubDate>
        </item>
</channel>
</rss>