<?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[Crashes with SBParticleSystem]]></title><description><![CDATA[<p dir="auto">This piece of code that I used crashes SAMSON 0.7.0:</p>
<pre><code>void MyClass::myFunction(const SBNodeIndexer&amp; nodeIndexer) {
      // Create particle system
      SBParticleSystem particleSystem(nodeIndexer);
}
</code></pre>
<p dir="auto">While the following one does not crash</p>
<pre><code>void MyClass::myFunction(const SBNodeIndexer&amp; nodeIndexer) {
      // Create particle system
      SBPointer&lt;SBParticleSystem&gt; particleSystem(new SBParticleSystem(nodeIndexer));
}
</code></pre>
]]></description><link>https://forum.samson-connect.net/topic/38/crashes-with-sbparticlesystem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 11:05:17 GMT</lastBuildDate><atom:link href="https://forum.samson-connect.net/topic/38.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Apr 2018 14:30:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Crashes with SBParticleSystem on Thu, 12 Apr 2018 15:11:55 GMT]]></title><description><![CDATA[<p dir="auto">Hi Khoa, yes, it's always better to create nodes on the heap instead of the stack (i.e. with new). Therefore, you should use a SAMSON pointer (SBPointer) to hold it and destroy the node automatically when the variable gets out of scope.</p>
]]></description><link>https://forum.samson-connect.net/post/123</link><guid isPermaLink="true">https://forum.samson-connect.net/post/123</guid><dc:creator><![CDATA[Admin]]></dc:creator><pubDate>Thu, 12 Apr 2018 15:11:55 GMT</pubDate></item></channel></rss>