Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Memory usage of SmartClient applications

    Simple Example (code attached) :
    I have a page with two buttons : on that creates a ListGrid with Data and the other that destroys it.
    With FF3 (all addons/plugins disabled),
    when i create the List, the memory of the browser increases.
    when i destroy the List, the memory of the browser stays the same.

    (In IE, the memory decreases but not to the level it was before creating the list; and, on creation, the memory increases more than in FF).

    In the documentation for Canvas.destroy (),
    "
    Permanently destroy a Canvas.

    This does everything that clear() does, but unlike clear(), the Canvas cannot be draw()'n again, cannot be referenced by it's global ID, and is eligible for garbage collection (assuming that application code is not holding a reference to the Canvas).
    "
    In my example, the application code is not holding a reference to the Canvas. But the memory of the browser stays the same.
    The greater part of the increase in memory is due to the data (i checked by removing the data).

    When the ListGrid is destroyed, is the data destroyed or should it be done explicitely ?

    I have put a simple example but in my application, the user can open several tabs with each containing such a list so after a certain usage time, FF or IE takes much memory (which, u can imagine, is not very well accepted by the users...)
    I've been looking at this issue for several days now and i've not made any progress...
    [There are also other type of contents in a tab with the same memory issue but for now, i will be happy to resolve this one...]

    Do u think it is only related to the browser Garbage Collector ? Or could it be related to the code ?

    More generally, can u recommend a tool or way to chech for memory usage of SmartClient applications and trace these kind of issues ?

    Thank you
    Attached Files

    #2
    When a ListGrid is destroyed, if it automatically created it's own ResultSet, that ResultSet is destroyed. Your sample uses a clientOnly DataSource - if you are creating those on a per-tab basis, you need to destroy() them too. In a nutshell, anything that has or can be assigned a global ID needs to be destroy()d.

    Comment


      #3
      problem remains

      Hello,

      I tried by assigning a global ID for the DataSource and then destroying it in addition to destroying the list but it hasn't changed anything.
      When I destroy the List and the DataSource, the memory usage of the browser stays the same as after loading them.

      Simple Example (code at the end) :
      I have a page with two buttons : one ("add") that creates a ListGrid and a DataSource for that List and the other ("destroy") that destroys them.

      With FF3 (all addons/plugins disabled) (I also tried by disabling the SmartClient Developper Console),
      when i create the List and the DataSource, the memory of the browser increases.
      when i destroy the List and the DataSource, the memory of the browser stays the same.

      Am I doing something wrong when I destroy the DataSource and/or List ? Or could the problem be somewhere else ?

      Thank you

      Code:
      isc.setAutoDraw(false);
      fnAppListGridCreateDataSource = function () {
      	return isc.DataSource.create({
      	ID: "appDataSource_01309024369",
      	totalRows:1729,
      	criteriaCount:0,
      	fields: [
              {name:"rowid", title:"#", width: 30, canSort: false, canEdit: false, canFilter: false, type: "integer", hidden: true, visible: false, primaryKey: true},
              {name:"index", title:"#", width: 30, canSort: false, canEdit: false, canFilter: false, type: "integer", showHover:true, hoverHTML: "return '<nobr><b>Identifiant</b> - ' + record.rowid + '</nobr>' + (record.share != null ? '<nobr><b>Partage</b> - ' + record.share + '</nobr>' : '') + (record.owner != null ? '<nobr><b>Propriétaire</b> - ' + record.owner + '</nobr>' : '')"}
              , {name: "colA",title: "Name",emptyCellValue: "-",canEdit: true,required: true,type: "text",width: "21%" }
              , {name: "colB",title: "Group",emptyCellValue: "-",canEdit: true,required: false,type: "text",width: "19%" }
              , {name: "colC",title: "Partner",emptyCellValue: "-",canEdit: true,required: false,type: "integer",allowEmptyValue: true
              , align: "left" ,type: "enum",valueMap: {"1":"Prescr",	"2":"Integ", "3":"Distrib", "4":"Partenaire d'offres" },width: "18%" }
      		, {name: "colD",title: "Commentary",type: "text", emptyCellValue: "-",canEdit:true,required: false,showHover: true ,width: "21%" }
              , {name: "colE",title: "Code",emptyCellValue: "-",canEdit: true,required: false,type: "text",width: "21%" }
      	],
      	testData: [
      {index: 1, rowid: 512, frowid: "512", activated: true,"colA":"MFCPPL","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 2, rowid: 768, frowid: "768", activated: true,"colA":"TPHFSFT","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 3, rowid: 1024, frowid: "1024", activated: true,"colA":"HFOFSBMUSBJMFSTGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQXXXHFOFSBMUSBJMFSTDPN"}
      ,{index: 4, rowid: 1280, frowid: "1280", activated: true,"colA":"VOJPOSFHJPOBMFGFEFSBUJPONVUVBMJTUFQBSJTJFOOF","colB":"","colC":null,"colD":"","colE":"XXXGNQGS"}
      ,{index: 5, rowid: 1536, frowid: "1536", activated: true,"colA":"BDUFJBSE","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 6, rowid: 1, frowid: "1", activated: true,"colA":"CJCMJPUIÉRVFOBUJPOBMFEFGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQXXXCOGGS"}
      ,{index: 7, rowid: 513, frowid: "513", activated: true,"colA":"QSPMPHVFTPGUXBSF","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 8, rowid: 1025, frowid: "1025", activated: true,"colA":"HFOFSBMFEFHFPQIZTJRVFDJF","colB":"","colC":null,"colD":"","colE":"IUUQXXXHFOFSBMUSBJMFSTDPN"}
      ,{index: 9, rowid: 1793, frowid: "1793", activated: true,"colA":"NVUVFMMFEVNJOJTUÉSFEFMBKVTUJDF","colB":"","colC":null,"colD":"","colE":"IUUQXXXNNKGSTUBUVUTJOEFYIUN"}
      ,{index: 10, rowid: 258, frowid: "258", activated: true,"colA":"FHJEF","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 11, rowid: 1026, frowid: "1026", activated: true,"colA":"JTTFTQBDFWFSU","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 12, rowid: 1538, frowid: "1538", activated: true,"colA":"QVCMJDPSQ","colB":"","colC":4,"colD":"","colE":"IUUQXXXQVCMJDPSQGS"}
      ,{index: 13, rowid: 1794, frowid: "1794", activated: true,"colA":"HFGDP","colB":"","colC":null,"colD":"","colE":"IUUQXXXHFGDPOFUHFGDPGSHSPVQFSIQSFTFOUBUJPOJOEFYIU"}
      ,{index: 14, rowid: 259, frowid: "259", activated: true,"colA":"LBUISFJOGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQXXXLBUISFJOGS"}
      ,{index: 15, rowid: 1539, frowid: "1539", activated: true,"colA":"BMJDPTB","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 16, rowid: 1795, frowid: "1795", activated: true,"colA":"HPWPZBHFT","colB":"","colC":null,"colD":"","colE":"IUUQXXXHPWPZBHFTDPN"}
      ,{index: 17, rowid: 4, frowid: "4", activated: true,"colA":"DFOUSFIPTQJUBMJFSWFSTBJMMFT","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 18, rowid: 260, frowid: "260", activated: true,"colA":"JYPQVCMJTIJOH","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 19, rowid: 516, frowid: "516", activated: true,"colA":"CPVZHVFTTB","colB":"CPVZHVFT","colC":null,"colD":"","colE":""}
      ,{index: 20, rowid: 1540, frowid: "1540", activated: true,"colA":"BMMJBO[NBSJOFBWJBUJPOGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQBHGNBUBHGGS"}
      ,{index: 21, rowid: 1796, frowid: "1796", activated: true,"colA":"MPHFNFOUGSBOÈBJT","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 22, rowid: 261, frowid: "261", activated: true,"colA":"PORVFTUJOHFOJFSJF","colB":"","colC":1,"colD":"","colE":""}
      ,{index: 23, rowid: 1541, frowid: "1541", activated: true,"colA":"DPNQBOIJBEFTFHVSPTGJEFMJEBEFNVOEJBMTB","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 24, rowid: 1797, frowid: "1797", activated: true,"colA":"HMUSBEF","colB":"","colC":4,"colD":"","colE":"IUUQXXXHMUSBEFDPN"}
      ,{index: 25, rowid: 518, frowid: "518", activated: true,"colA":"HBMMFEP","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 26, rowid: 1030, frowid: "1030", activated: true,"colA":"HPPEZFBSEVOMPQUJSFTGSBODF","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 27, rowid: 1542, frowid: "1542", activated: true,"colA":"DPOUJOFOUWJFHSPVQFHFOFSBMJ","colB":"","colC":null,"colD":"","colE":"IUUQXXXDPOUJOFOUBTTVSBODFTUNGS"}
      ,{index: 28, rowid: 1798, frowid: "1798", activated: true,"colA":"TOQFNBUFSJBVYFOFSHFUJRVFT","colB":"TOQF","colC":null,"colD":"","colE":"IUUQXXXTOQFDPN"}
      ,{index: 29, rowid: 7, frowid: "7", activated: true,"colA":"NJOJTUÉSFEFMBEÊGFOTF","colB":"BSNÊF","colC":null,"colD":"","colE":""}
      ,{index: 30, rowid: 263, frowid: "263", activated: true,"colA":"MBOTBZGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQXXXMBOTBZGS"}
      ,{index: 31, rowid: 519, frowid: "519", activated: true,"colA":"TZTUFNBJS","colB":"","colC":null,"colD":"","colE":"IUUQXXXTZTUFNBJSDPN"}
      ,{index: 32, rowid: 1031, frowid: "1031", activated: true,"colA":"HSBOEPQUJDBMGSBODF","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 33, rowid: 520, frowid: "520", activated: true,"colA":"CVMMQPSUVHBM","colB":"","colC":1,"colD":"","colE":""}
      ,{index: 34, rowid: 1032, frowid: "1032", activated: true,"colA":"HSBOETNPVMJOTEFQBSJTMFT","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 35, rowid: 1544, frowid: "1544", activated: true,"colA":"EFGFOTFBVUPNPCJMFFUTQPSUJWFHSPVQFNNB","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 36, rowid: 1800, frowid: "1800", activated: true,"colA":"DPEJSHVJMEFWFTUHVJMEFEFTMVOFUUJFST","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 37, rowid: 265, frowid: "265", activated: true,"colA":"WFSJUZGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQXXXWFSJUZDPN"}
      ,{index: 38, rowid: 521, frowid: "521", activated: true,"colA":"CVTJOFTTPCKFDUT","colB":"","colC":null,"colD":"","colE":"IUUQXXXCVTJOFTTPCKFDUTDPN"}
      ,{index: 39, rowid: 1545, frowid: "1545", activated: true,"colA":"EJSFDUBTTVSBODFWJFHSPVQFBYB","colB":"","colC":null,"colD":"","colE":"IUUQXXXEJSFDUBTTVSBODFGS"}
      ,{index: 40, rowid: 266, frowid: "266", activated: true,"colA":"TBMPNÊJOGPSNBUJRVF","colB":"","colC":3,"colD":"","colE":""}
      ,{index: 41, rowid: 522, frowid: "522", activated: true,"colA":"JODBTPGUXBSF","colB":"","colC":3,"colD":"","colE":"IUUQXXXJODBTPGUXBSFDPVL"}
      ,{index: 42, rowid: 1546, frowid: "1546", activated: true,"colA":"FBHMFTUBSJOTVSBODFDPNQBOZMJNJUFEHSPVQF[VSJDI","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 43, rowid: 523, frowid: "523", activated: true,"colA":"TBMFDUJWF","colB":"","colC":4,"colD":"","colE":"IUUQXXXTBMFDUJWFDPN"}
      ,{index: 44, rowid: 779, frowid: "779", activated: true,"colA":"JBFEFQBV","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 45, rowid: 1547, frowid: "1547", activated: true,"colA":"FDVSFVJMWJFHSPVQFDOQDODFQ","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 46, rowid: 12, frowid: "12", activated: true,"colA":"BMUBEJT","colB":"","colC":2,"colD":"","colE":"IUUQXXXBMUBEJTDPN"}
      ,{index: 47, rowid: 524, frowid: "524", activated: true,"colA":"QSPEXBSF","colB":"","colC":4,"colD":"","colE":""}
      ,{index: 48, rowid: 780, frowid: "780", activated: true,"colA":"PQFOJUFYIBZTJUCJFOUÕUUFBNMPH","colB":"","colC":1,"colD":"","colE":""}
      ,{index: 49, rowid: 1548, frowid: "1548", activated: true,"colA":"FMWJBBTTVSBODFTWPZBHFT","colB":"","colC":null,"colD":"","colE":"IUUQXXXFMWJBGS"}
      ,{index: 50, rowid: 1804, frowid: "1804", activated: true,"colA":"TPGFEJT","colB":"","colC":null,"colD":"","colE":"IUUQXXXTPGFEJTGS"}
      ,{index: 2, rowid: 768, frowid: "768", activated: true,"colA":"TPHFSFT","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 3, rowid: 1024, frowid: "1024", activated: true,"colA":"HFOFSBMUSBJMFSTGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQXXXHFOFSBMUSBJMFSTDPN"}
      ,{index: 4, rowid: 1280, frowid: "1280", activated: true,"colA":"VOJPOSFHJPOBMFGFEFSBUJPONVUVBMJTUFQBSJTJFOOF","colB":"","colC":null,"colD":"","colE":"XXXGNQGS"}
      ,{index: 5, rowid: 1536, frowid: "1536", activated: true,"colA":"BDUFJBSE","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 6, rowid: 1, frowid: "1", activated: true,"colA":"CJCMJPUIÉRVFOBUJPOBMFEFGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQXXXCOGGS"}
      ,{index: 7, rowid: 513, frowid: "513", activated: true,"colA":"QSPMPHVFTPGUXBSF","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 8, rowid: 1025, frowid: "1025", activated: true,"colA":"HFOFSBMFEFHFPQIZTJRVFDJF","colB":"","colC":null,"colD":"","colE":"IUUQXXXHFOFSBMUSBJMFSTDPN"}
      ,{index: 9, rowid: 1793, frowid: "1793", activated: true,"colA":"NVUVFMMFEVNJOJTUÉSFEFMBKVTUJDF","colB":"","colC":null,"colD":"","colE":"IUUQXXXNNKGSTUBUVUTJOEFYIUN"}
      ,{index: 10, rowid: 258, frowid: "258", activated: true,"colA":"FHJEF","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 11, rowid: 1026, frowid: "1026", activated: true,"colA":"JTTFTQBDFWFSU","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 12, rowid: 1538, frowid: "1538", activated: true,"colA":"QVCMJDPSQ","colB":"","colC":4,"colD":"","colE":"IUUQXXXQVCMJDPSQGS"}
      ,{index: 13, rowid: 1794, frowid: "1794", activated: true,"colA":"HFGDP","colB":"","colC":null,"colD":"","colE":"IUUQXXXHFGDPOFUHFGDPGSHSPVQFSIQSFTFOUBUJPOJOEFYIU"}
      ,{index: 14, rowid: 259, frowid: "259", activated: true,"colA":"LBUISFJOGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQXXXLBUISFJOGS"}
      ,{index: 15, rowid: 1539, frowid: "1539", activated: true,"colA":"BMJDPTB","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 16, rowid: 1795, frowid: "1795", activated: true,"colA":"HPWPZBHFT","colB":"","colC":null,"colD":"","colE":"IUUQXXXHPWPZBHFTDPN"}
      ,{index: 17, rowid: 4, frowid: "4", activated: true,"colA":"DFOUSFIPTQJUBMJFSWFSTBJMMFT","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 18, rowid: 260, frowid: "260", activated: true,"colA":"JYPQVCMJTIJOH","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 19, rowid: 516, frowid: "516", activated: true,"colA":"CPVZHVFTTB","colB":"CPVZHVFT","colC":null,"colD":"","colE":""}
      ,{index: 20, rowid: 1540, frowid: "1540", activated: true,"colA":"BMMJBO[NBSJOFBWJBUJPOGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQBHGNBUBHGGS"}
      ,{index: 21, rowid: 1796, frowid: "1796", activated: true,"colA":"MPHFNFOUGSBOÈBJT","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 22, rowid: 261, frowid: "261", activated: true,"colA":"PORVFTUJOHFOJFSJF","colB":"","colC":1,"colD":"","colE":""}
      ,{index: 23, rowid: 1541, frowid: "1541", activated: true,"colA":"DPNQBOIJBEFTFHVSPTGJEFMJEBEFNVOEJBMTB","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 24, rowid: 1797, frowid: "1797", activated: true,"colA":"HMUSBEF","colB":"","colC":4,"colD":"","colE":"IUUQXXXHMUSBEFDPN"}
      ,{index: 25, rowid: 518, frowid: "518", activated: true,"colA":"HBMMFEP","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 26, rowid: 1030, frowid: "1030", activated: true,"colA":"HPPEZFBSEVOMPQUJSFTGSBODF","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 27, rowid: 1542, frowid: "1542", activated: true,"colA":"DPOUJOFOUWJFHSPVQFHFOFSBMJ","colB":"","colC":null,"colD":"","colE":"IUUQXXXDPOUJOFOUBTTVSBODFTUNGS"}
      ,{index: 28, rowid: 1798, frowid: "1798", activated: true,"colA":"TOQFNBUFSJBVYFOFSHFUJRVFT","colB":"TOQF","colC":null,"colD":"","colE":"IUUQXXXTOQFDPN"}
      ,{index: 29, rowid: 7, frowid: "7", activated: true,"colA":"NJOJTUÉSFEFMBEÊGFOTF","colB":"BSNÊF","colC":null,"colD":"","colE":""}
      ,{index: 30, rowid: 263, frowid: "263", activated: true,"colA":"MBOTBZGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQXXXMBOTBZGS"}
      ,{index: 31, rowid: 519, frowid: "519", activated: true,"colA":"TZTUFNBJS","colB":"","colC":null,"colD":"","colE":"IUUQXXXTZTUFNBJSDPN"}
      ,{index: 32, rowid: 1031, frowid: "1031", activated: true,"colA":"HSBOEPQUJDBMGSBODF","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 33, rowid: 520, frowid: "520", activated: true,"colA":"CVMMQPSUVHBM","colB":"","colC":1,"colD":"","colE":""}
      ,{index: 34, rowid: 1032, frowid: "1032", activated: true,"colA":"HSBOETNPVMJOTEFQBSJTMFT","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 35, rowid: 1544, frowid: "1544", activated: true,"colA":"EFGFOTFBVUPNPCJMFFUTQPSUJWFHSPVQFNNB","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 36, rowid: 1800, frowid: "1800", activated: true,"colA":"DPEJSHVJMEFWFTUHVJMEFEFTMVOFUUJFST","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 37, rowid: 265, frowid: "265", activated: true,"colA":"WFSJUZGSBODF","colB":"","colC":null,"colD":"","colE":"IUUQXXXWFSJUZDPN"}
      ,{index: 38, rowid: 521, frowid: "521", activated: true,"colA":"CVTJOFTTPCKFDUT","colB":"","colC":null,"colD":"","colE":"IUUQXXXCVTJOFTTPCKFDUTDPN"}
      ,{index: 39, rowid: 1545, frowid: "1545", activated: true,"colA":"EJSFDUBTTVSBODFWJFHSPVQFBYB","colB":"","colC":null,"colD":"","colE":"IUUQXXXEJSFDUBTTVSBODFGS"}
      ,{index: 40, rowid: 266, frowid: "266", activated: true,"colA":"TBMPNÊJOGPSNBUJRVF","colB":"","colC":3,"colD":"","colE":""}
      ,{index: 41, rowid: 522, frowid: "522", activated: true,"colA":"JODBTPGUXBSF","colB":"","colC":3,"colD":"","colE":"IUUQXXXJODBTPGUXBSFDPVL"}
      ,{index: 42, rowid: 1546, frowid: "1546", activated: true,"colA":"FBHMFTUBSJOTVSBODFDPNQBOZMJNJUFEHSPVQF[VSJDI","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 43, rowid: 523, frowid: "523", activated: true,"colA":"TBMFDUJWF","colB":"","colC":4,"colD":"","colE":"IUUQXXXTBMFDUJWFDPN"}
      ,{index: 44, rowid: 779, frowid: "779", activated: true,"colA":"JBFEFQBV","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 45, rowid: 1547, frowid: "1547", activated: true,"colA":"FDVSFVJMWJFHSPVQFDOQDODFQ","colB":"","colC":null,"colD":"","colE":""}
      ,{index: 46, rowid: 12, frowid: "12", activated: true,"colA":"BMUBEJT","colB":"","colC":2,"colD":"","colE":"IUUQXXXBMUBEJTDPN"}
      ,{index: 47, rowid: 524, frowid: "524", activated: true,"colA":"QSPEXBSF","colB":"","colC":4,"colD":"","colE":""}
      ,{index: 48, rowid: 780, frowid: "780", activated: true,"colA":"PQFOJUFYIBZTJUCJFOUÕUUFBNMPH","colB":"","colC":1,"colD":"","colE":""}
      ,{index: 49, rowid: 1548, frowid: "1548", activated: true,"colA":"FMWJBBTTVSBODFTWPZBHFT","colB":"","colC":null,"colD":"","colE":"IUUQXXXFMWJBGS"}
      ,{index: 50, rowid: 1804, frowid: "1804", activated: true,"colA":"TPGFEJT","colB":"","colC":null,"colD":"","colE":"IUUQXXXTPGFEJTGS"}
      	],
      		clientOnly: true
      	})
      };
      isc.Button.create ({
      	title: "add"
      	,autoDraw: true
      	,click: function () {
      		isc.ListGrid.create({
      		ID: "appListGrid_01309024369",
      		autoDraw: true,
      		selectionType: "single", 
      		top: 50, width:"100%", height:"90%",
      		alternateRecordStyles:true, showAllRecords:true, canHover: true, canEdit: false, initWidget: function() {
      			this.Super("initWidget", arguments);
      			this.load();
      		}, load: function() {
      			var grid = this;
      			grid.setDataSource(fnAppListGridCreateDataSource());
      			grid.fetchData();
      		}
      	});
      	}
      });
      isc.Button.create ({
      	top: 25 ,autoDraw: true, title: "destroy",click: function () {
      		appListGrid_01309024369.destroy ();
      		appDataSource_01309024369.destroy ();
      	}
      });

      Comment


        #4
        No, this is not correct methodology. You are doing nothing that would cause the browser to actually reclaim the memory. The correct way to look for a leak is to do something thousands of times in a cycle.

        At that point, expect a moderate size in memory usage as the browser fills in various caches, but there should not be a long term trend of memory continuing to rise.

        Note that some browsers have very very slow leaks that there is no known way to eliminate (as in, browser vendors have acknowledged a problem that cannot be corrected externally). As of the last full testing cycle, the slow leaks were so slow that it would take multiple days of continuous use before meaningful performance degradation occurs.
        Last edited by Isomorphic; 5 Jan 2010, 12:42.

        Comment

        Working...
        X