<div dir="ltr">Thanks Anders, I am on 3.5.1 .. Let me try the trunk then .. Thanks again!<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 9:19 PM, Anders Backman <span dir="ltr"><<a href="mailto:andersb@cs.umu.se" target="_blank">andersb@cs.umu.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I believe this has been fixed in the trunk. But there is no official release containing this fix just yet.<div>It happens with just about any osg::Program/Shader.</div><div><br></div><div>/A</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Feb 24, 2016 at 7:42 PM, Trajce Nikolov NICK <span dir="ltr"><<a href="mailto:trajce.nikolov.nick@gmail.com" target="_blank">trajce.nikolov.nick@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi Community,<div><br></div><div>I've been fighting with cleaning of ref_ptrs when using osgShadow. It crashes in deleting the pointer. This is odd but attached is very simple example, osgviewer just with adding it to a shadowed scene with some technique.</div><div><br></div><div>Any clue? Sample attached</div><div><br></div><div><br></div><div>Thanks a bunch as always !</div><div><br></div><div>Cheers,</div><div>Nick</div><div><br></div><div><div>void Referenced::signalObserversAndDelete(bool signalDelete, bool doDelete) const</div><div>{</div><div>#if defined(_OSG_REFERENCED_USE_ATOMIC_OPERATIONS)</div><div> ObserverSet* observerSet = static_cast<ObserverSet*>(_observerSet.get());</div><div>#else</div><div> ObserverSet* observerSet = static_cast<ObserverSet*>(_observerSet);</div><div>#endif</div><div><br></div><div> if (observerSet && signalDelete)</div><div> {</div><div> observerSet->signalObjectDeleted(const_cast<Referenced*>(this));</div><div> }</div><div><br></div><div> if (doDelete)</div><div> {</div><div> if (_refCount!=0)</div><div> OSG_NOTICE<<"Warning Referenced::signalObserversAndDelete(,,) doing delete with _refCount="<<_refCount<<std::endl;</div><div><br></div><div> if (getDeleteHandler()) deleteUsingDeleteHandler();</div><div> CRASHES HERE -----> else delete this;</div><div> }</div><div>}</div><span><font color="#888888"><div><br></div>-- <br><div>trajce nikolov nick<br></div>
</font></span></div></div>
<br></div></div>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>__________________________________________<br>Anders Backman, HPC2N<br>90187 Umeå University, Sweden<br><a href="mailto:anders@cs.umu.se" target="_blank">anders@cs.umu.se</a> <a href="http://www.hpc2n.umu.se/" target="_blank">http://www.hpc2n.umu.se</a><br>Cell: <a href="tel:%2B46-70-392%2064%2067" value="+46703926467" target="_blank">+46-70-392 64 67</a></div>
</font></span></div>
<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">trajce nikolov nick<br></div>
</div>