<div dir="ltr">Hi,<div><br></div><div>In Blender we do use guarded allocator everywhere, including Cycles (at least for it&#39;s major parts). I did not see any leaks reported. So can you elaborate a bit more which exact memory is leaking?</div><div><br></div><div>Think it worth addressing the issue unless it leads to some nasty code workaorunds or makes integration into other software creepier.</div><div><br></div><div>But all that being said, please make sure you&#39;re doing similar thing to what we do in blender_python.cpp:exit_func(). This was the trick to make staticly initialized data to be freed and make Blender&#39;s integration happy.</div><div><br></div><div>We should probably need to move that code to ccl::Session::exit() and call from standalone app as well.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 12, 2016 at 6:31 PM, Thomas Krebs <span dir="ltr">&lt;<a href="mailto:Thomas.Krebs@mecadtron.de" target="_blank">Thomas.Krebs@mecadtron.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
We are currently trying to integrate cycles into our 3d app.<br>
We have successfully implemented a collada exporter from our app<br>
and produced some nice images in Blender.<br>
Now we got the standalone cycles app compiled and running.<br>
We found that cycles leaks quite some bit from some static<br>
initializers. As we try to solve leaks by monitoring leaks reports from<br>
MSVC this is somewhat problematic.<br>
Personally I would prefer not to have static initializers rather than<br>
some initialize/terminate functions, which would make cycles even more<br>
usable for integration in other systems.<br>
Is there some effort going on to address that situation or would such<br>
an effort be welcome?<br>
We might supply changes for that but we would leave it up to more<br>
experienced submitters to integrate such changes, if at all.<br>
<br>
Thomas<br>
_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</div>