<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QPluginLoader memory location]]></title><description><![CDATA[<p dir="auto">HI,</p>
<p dir="auto">QpluginLoader loads library  returns instance of library.<br />
Return instance is created at stack memory  or heap memmory, how to check memory allocation place?</p>
<p dir="auto">Thank you in advance.</p>
]]></description><link>https://forum.qt.io/topic/77532/qpluginloader-memory-location</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 01:01:54 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/77532.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Mar 2017 04:33:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QPluginLoader memory location on Mon, 27 Mar 2017 03:39:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> thank you.<br />
As i made test to check the memory allocation using threads, it confirmed that loaded plugin is not on stack , mostly on heap.</p>
]]></description><link>https://forum.qt.io/post/384307</link><guid isPermaLink="true">https://forum.qt.io/post/384307</guid><dc:creator><![CDATA[yuvaram]]></dc:creator><pubDate>Mon, 27 Mar 2017 03:39:45 GMT</pubDate></item><item><title><![CDATA[Reply to QPluginLoader memory location on Fri, 24 Mar 2017 07:44:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
The Instance , returned by this function, is not deleted when the QPluginLoader is destroyed. If you want to ensure that the instance is deleted, you should call unload() as soon you don't need to access the Instance anymore. When the library is finally unloaded, the Instance will automatically be deleted.</p>
]]></description><link>https://forum.qt.io/post/383925</link><guid isPermaLink="true">https://forum.qt.io/post/383925</guid><dc:creator><![CDATA[Venkatesh V]]></dc:creator><pubDate>Fri, 24 Mar 2017 07:44:07 GMT</pubDate></item><item><title><![CDATA[Reply to QPluginLoader memory location on Fri, 24 Mar 2017 05:24:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yuvaram">@<bdi>yuvaram</bdi></a> It for sure does not allocate the memory on the stack. Stack is only used for function calls: function call frames including the address to jump back after function execution, function parameters and local variables in the function.<br />
QPluginLoader actually does what dlopen() system call does on UNIX systems, so you can check there how it loads the library (a plug-in is just a shared library).</p>
]]></description><link>https://forum.qt.io/post/383902</link><guid isPermaLink="true">https://forum.qt.io/post/383902</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 24 Mar 2017 05:24:48 GMT</pubDate></item></channel></rss>