Hi,
When setting custom attributes server-side, it seems like IE9 leaks some memory when posting an updatepanel.
Sample:
Code behind:
I have increased the size of the attribute that is set just to make the memory leak more obvious.
Each button click in this sample seems to leaks some memory, at least in IE9-mode!
In our real world application, we do notice this memory leak since we have a top menu that is always updated with updatepanel. The entire application (page) is very rarely reloaded in our application.
Regards
Caesar
When setting custom attributes server-side, it seems like IE9 leaks some memory when posting an updatepanel.
Sample:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="menumem.aspx.vb" Inherits="WebApplication4.menumem" %><!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 runat="server"> <title></title></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="ccc" runat="server"> </telerik:RadScriptManager> <div> <asp:UpdatePanel ID="up" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional"> <ContentTemplate> <asp:Button ID="aa" runat="server" Text="Hit me multiple times" /> <telerik:RadMenu ID="rm" runat="server"> <Items> <telerik:RadMenuItem Text="Test"> </telerik:RadMenuItem> <telerik:RadMenuItem Text="Test"> </telerik:RadMenuItem> <telerik:RadMenuItem Text="Test"> </telerik:RadMenuItem> <telerik:RadMenuItem Text="Test"> </telerik:RadMenuItem> <telerik:RadMenuItem Text="Test"> </telerik:RadMenuItem> <telerik:RadMenuItem Text="Test"> </telerik:RadMenuItem> </Items> </telerik:RadMenu> </ContentTemplate> </asp:UpdatePanel> </div> </form></body></html>Code behind:
Public Class menumem Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load For Each rmi As Telerik.Web.UI.RadMenuItem In rm.Items rmi.Attributes("test") = New String("c"c, 200000) Next End SubEnd ClassI have increased the size of the attribute that is set just to make the memory leak more obvious.
Each button click in this sample seems to leaks some memory, at least in IE9-mode!
In our real world application, we do notice this memory leak since we have a top menu that is always updated with updatepanel. The entire application (page) is very rarely reloaded in our application.
Regards
Caesar
