Hybrid View
-
15 Sep 2008 1:11 PM #1
Ext.QuickTips + ASP.NET AJAX = IE Memory Leak?
Ext.QuickTips + ASP.NET AJAX = IE Memory Leak?
Not sure if this is a bug or not - might just be more of a compatibility issue: Use of ASP.NET AJAX and ExtJS's quick tips together seems to cause large memory problems in IE 7. A simple .aspx page to reproduce:
Running the page in sIEve will show IE leaking ~1MB every page refresh. FF 3 seems to reclaim memory fine. Note that removing either the ScriptManager tag or the Ext.QuickTips.init statement will stop the leaking. Any other ExtJS code besides initializing QuickTips seems irrelavant to the problem. Also, using a global function for Ext.onReady instead of an anonymous function doesn't affect the problem either.Code:<%@ Page Title="" Language="C#" AutoEventWireup="false" CodeFile="LeakTest.aspx.cs" Inherits="LeakTest" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Untitled Page</title> <link rel="stylesheet" type="text/css" href="scripts/ext/resources/css/ext-all.css" /> <script type="text/javascript" src="scripts/ext/adapter/ext/ext-base.js"></script> <script type="text/javascript" src="scripts/ext/ext-all-debug.js"></script> </head> <body> <form id="mainForm" runat="server"> <asp:ScriptManager ID="scriptManager" runat="server" /> <script type="text/javascript"> Ext.onReady(function() { Ext.QuickTips.init(); }); </script> </form> </body> </html>
I traced through the Ext.QuickTips.init code (and code it calls) but couldn't find anything suspicious, maybe someone could provide some perspective on how this could occur?
-
15 Sep 2008 9:19 PM #2
Search the 2.0 bugs forum, and if this is not fixed yet, post this prob there.
Make everything as simple as possible, but not simpler.
- Albert Einstein


Reply With Quote