<?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[Crash when copying QOpenGLFunctions Core objects]]></title><description><![CDATA[<p dir="auto">A colleague of mine here at <a href="http://www.lkeb.nl" target="_blank" rel="noopener noreferrer nofollow ugc">LKEB</a> (<a href="https://www.lumc.nl" target="_blank" rel="noopener noreferrer nofollow ugc">LUMC</a>) encountered an access violation when destructing objects of a class, derived from an QOpenGLFunctions Core class, in Qt 5.5.1. Now it appears that even the following simple code crashes, as I tested in Qt 5.11.1:</p>
<pre><code>#include &lt;QOpenGLFunctions_4_5_Core&gt;

void CopyCoreObjects()
{
	{
		QOpenGLFunctions_4_5_Core coreObject1;
		{
			QOpenGLFunctions_4_5_Core coreObject2 = coreObject1;

		}  // OK, calls ~QOpenGLFunctions_4_5_Core().

	} // Crash!
}
</code></pre>
<p dir="auto">Is this a known issue? We would suggest preventing accidental copying QOpenGLFunctions Core objects by marking the copy-constructor and the assignment-operator with C++11 "= delete".</p>
]]></description><link>https://forum.qt.io/topic/95927/crash-when-copying-qopenglfunctions-core-objects</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 21:30:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/95927.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Oct 2018 13:47:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Crash when copying QOpenGLFunctions Core objects on Fri, 26 Oct 2018 10:42:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> said in <a href="/post/489036">Crash when copying QOpenGLFunctions Core objects</a>:</p>
<blockquote>
<p dir="auto">I would say you're right. Please create a bug report so it can be fixed.</p>
</blockquote>
<p dir="auto">Thanks Christian! I just submitted the bug report: <a href="https://bugreports.qt.io/browse/QTBUG-71422" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-71422</a></p>
]]></description><link>https://forum.qt.io/post/489180</link><guid isPermaLink="true">https://forum.qt.io/post/489180</guid><dc:creator><![CDATA[Niels Dekker]]></dc:creator><pubDate>Fri, 26 Oct 2018 10:42:28 GMT</pubDate></item><item><title><![CDATA[Reply to Crash when copying QOpenGLFunctions Core objects on Thu, 25 Oct 2018 17:57:51 GMT]]></title><description><![CDATA[<p dir="auto">I would say you're right. Please create a bug report so it can be fixed.</p>
]]></description><link>https://forum.qt.io/post/489036</link><guid isPermaLink="true">https://forum.qt.io/post/489036</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Thu, 25 Oct 2018 17:57:51 GMT</pubDate></item></channel></rss>