<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Memory leakage in QlikSense extension in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Memory-leakage-in-QlikSense-extension/m-p/80868#M1150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have developed a QlikSense extension to loop through sheets of an app based on timer settings.&lt;/P&gt;&lt;P&gt;The extension utilises the setTimeout() javascript method but I am having issues with memory leakage.&lt;/P&gt;&lt;P&gt;I have tried to find a way to clear the timeout using clearTimeout() method but with no success.&lt;/P&gt;&lt;P&gt;Has anyone used these methods within a QlikSense extension and can advise a way to prevent the memory leakage?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2018 01:46:11 GMT</pubDate>
    <dc:creator>rachel_delany</dc:creator>
    <dc:date>2018-04-10T01:46:11Z</dc:date>
    <item>
      <title>Memory leakage in QlikSense extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Memory-leakage-in-QlikSense-extension/m-p/80868#M1150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have developed a QlikSense extension to loop through sheets of an app based on timer settings.&lt;/P&gt;&lt;P&gt;The extension utilises the setTimeout() javascript method but I am having issues with memory leakage.&lt;/P&gt;&lt;P&gt;I have tried to find a way to clear the timeout using clearTimeout() method but with no success.&lt;/P&gt;&lt;P&gt;Has anyone used these methods within a QlikSense extension and can advise a way to prevent the memory leakage?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 01:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Memory-leakage-in-QlikSense-extension/m-p/80868#M1150</guid>
      <dc:creator>rachel_delany</dc:creator>
      <dc:date>2018-04-10T01:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leakage in QlikSense extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Memory-leakage-in-QlikSense-extension/m-p/80869#M1151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rachel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you using angular to develop your extensions? If yes take a look AngularJS's wrapper for window.setTimeout: &lt;STRONG&gt;$timeout&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise make sure you are clearing the same timeout you are creating, e.g (shamelesly copied from w3schools):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas, 'courier new'; font-size: 16px; color: mediumblue;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt; myTimeout;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt;myTimeout &lt;/SPAN&gt;= setTimeout(&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas, 'courier new'; font-size: 16px; color: mediumblue;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt;(){ alert(&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas, 'courier new'; font-size: 16px; color: brown;"&gt;"Hello"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt;); }, &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas, 'courier new'; font-size: 16px; color: red;"&gt;3000&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt;clearTimeout(&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt;myTimeout&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'courier new'; font-size: 16px;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Memory-leakage-in-QlikSense-extension/m-p/80869#M1151</guid>
      <dc:creator>m_s</dc:creator>
      <dc:date>2018-04-11T14:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leakage in QlikSense extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Memory-leakage-in-QlikSense-extension/m-p/80870#M1152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It can be pretty tricky to use an extension to loop through sheets since extensions live on sheets so changing sheet will destroy the extension, though it will probably still be loaded. Have you considered other approaches like a webpage with a sheet in an iframe and the loop in the main page?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 16:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Memory-leakage-in-QlikSense-extension/m-p/80870#M1152</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-04-12T16:09:18Z</dc:date>
    </item>
  </channel>
</rss>

