<?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 Leak while using picturemarkersymbol in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/memory-leak-while-using-picturemarkersymbol/m-p/1331866#M5060</link>
    <description>&lt;P&gt;I am trying to load the image at runtime by calling the function_under_test() and as well add a picture marker symbol every time ,this has resulted in memory leak and when we try to clear it using the api&amp;nbsp;scvImageGraphiOverLay-&amp;gt;graphics()-&amp;gt;clear(); still i have memory leaks .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void function_under_test(){&lt;/P&gt;&lt;P&gt;QByteArray data;&lt;BR /&gt;if(!file.open(QIODevice::ReadOnly))&lt;BR /&gt;{&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;data=file.readAll();&lt;BR /&gt;}&lt;BR /&gt;file.close();&lt;/P&gt;&lt;P&gt;const unsigned char* lpchar = reinterpret_cast&amp;lt;const unsigned char *&amp;gt;(data.constData());&lt;/P&gt;&lt;P&gt;// Point pt1(airCraftPoint);&lt;BR /&gt;QImage testImg(lpchar, 1080, 1080, QImage::Format_RGB888);&lt;/P&gt;&lt;P&gt;scvImageSymbol = new PictureMarkerSymbol(testImg, this);&lt;BR /&gt;scvImageSymbol-&amp;gt;setOpacity(0.5);scvImagetGraphic-&amp;gt;setSymbol(scvImageSymbol);&lt;BR /&gt;&lt;BR /&gt;scvImageGraphiOverLay-&amp;gt;graphics()-&amp;gt;clear();&lt;BR /&gt;scvImageGraphiOverLay-&amp;gt;graphics()-&amp;gt;append(scvImagetGraphic);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;How to resolve memory leak issue related to picturemarkersymbol.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 06:56:17 GMT</pubDate>
    <dc:creator>TASL_Virendra</dc:creator>
    <dc:date>2023-09-25T06:56:17Z</dc:date>
    <item>
      <title>Memory Leak while using picturemarkersymbol</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/memory-leak-while-using-picturemarkersymbol/m-p/1331866#M5060</link>
      <description>&lt;P&gt;I am trying to load the image at runtime by calling the function_under_test() and as well add a picture marker symbol every time ,this has resulted in memory leak and when we try to clear it using the api&amp;nbsp;scvImageGraphiOverLay-&amp;gt;graphics()-&amp;gt;clear(); still i have memory leaks .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void function_under_test(){&lt;/P&gt;&lt;P&gt;QByteArray data;&lt;BR /&gt;if(!file.open(QIODevice::ReadOnly))&lt;BR /&gt;{&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;data=file.readAll();&lt;BR /&gt;}&lt;BR /&gt;file.close();&lt;/P&gt;&lt;P&gt;const unsigned char* lpchar = reinterpret_cast&amp;lt;const unsigned char *&amp;gt;(data.constData());&lt;/P&gt;&lt;P&gt;// Point pt1(airCraftPoint);&lt;BR /&gt;QImage testImg(lpchar, 1080, 1080, QImage::Format_RGB888);&lt;/P&gt;&lt;P&gt;scvImageSymbol = new PictureMarkerSymbol(testImg, this);&lt;BR /&gt;scvImageSymbol-&amp;gt;setOpacity(0.5);scvImagetGraphic-&amp;gt;setSymbol(scvImageSymbol);&lt;BR /&gt;&lt;BR /&gt;scvImageGraphiOverLay-&amp;gt;graphics()-&amp;gt;clear();&lt;BR /&gt;scvImageGraphiOverLay-&amp;gt;graphics()-&amp;gt;append(scvImagetGraphic);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;How to resolve memory leak issue related to picturemarkersymbol.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 06:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/memory-leak-while-using-picturemarkersymbol/m-p/1331866#M5060</guid>
      <dc:creator>TASL_Virendra</dc:creator>
      <dc:date>2023-09-25T06:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Leak while using picturemarkersymbol</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/memory-leak-while-using-picturemarkersymbol/m-p/1331872#M5062</link>
      <description>&lt;P&gt;Looks like a duplicate post of&amp;nbsp;&lt;A href="https://community.esri.com/t5/qt-maps-sdk-questions/memory-leak-happens-when-we-are-updating-qimage/m-p/1331855#M5059" target="_blank"&gt;https://community.esri.com/t5/qt-maps-sdk-questions/memory-leak-happens-when-we-are-updating-qimage/m-p/1331855#M5059&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 07:35:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/memory-leak-while-using-picturemarkersymbol/m-p/1331872#M5062</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2023-09-25T07:35:11Z</dc:date>
    </item>
  </channel>
</rss>

