<div dir="ltr">Hi Ale,<div><br></div><div>I don't have an answer but do have a vague recollection that in certain compiler options problems have been reported with dynamic_cast<>. My gut says it was OSX in some combination. It may well be a bug in the compile, try out gcc instead of Clang.</div><div><br></div><div>Sorry I can't be more specific, I don't have OSX system to test against and my vague recollections of something related to dynamic_cast<> is down to reading about the issue quite some time ago, just reading through, I wasn't an active participant in the discussion. Searching through the osg-users/forum archive might help, as would a general search of the web on the issue.</div><div><br></div><div>Robert</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 March 2016 at 08:30, Ale Maro <span dir="ltr"><<a href="mailto:sasha71@teletu.it" target="_blank">sasha71@teletu.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here is the exact point where OSG crash:<br>
<br>
------<br>
<br>
bool Dragger::handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)<br>
{<br>
.....<br>
<br>
for (osg::NodePath::iterator itr = _pointer._hitList.front().first.begin();<br>
itr != _pointer._hitList.front().first.end();<br>
++itr)<br>
{<br>
osgManipulator::Dragger* dragger = dynamic_cast<osgManipulator::Dragger*>(*itr);<br>
if (dragger)<br>
{<br>
......<br>
}<br>
<br>
-----<br>
<br>
Debugger says that itr pointer is valid. Any idea?<br>
<span class=""><br>
Best regards<br>
Ale<br>
<br>
------------------<br>
Read this topic online here:<br>
</span><a href="http://forum.openscenegraph.org/viewtopic.php?p=66619#66619" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=66619#66619</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<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>
</div></div></blockquote></div><br></div>