<div dir="ltr"><div><div><div><div>Robert, <br><br></div>a dangling pointer is a probable cause of my problems. Thanks for the hint, I'll look into it.<br><br></div>I thought it could be related to me rewriting the node's InitialBound.<br><br></div>Thanks,<br></div>Bruno<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-26 10:15 GMT+01:00 Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bruno,<br>
<br>
On 23 June 2017 at 23:45, Bruno Oliveira<br>
<span class=""><<a href="mailto:bruno.manata.oliveira@gmail.com">bruno.manata.oliveira@gmail.<wbr>com</a>> wrote:<br>
> I actually tried it already, in my nodes derived doth from osg::Group* and<br>
> osg::PagedLOD*.<br>
> However, overloading the PagedLOD's functions made my scene crash the app<br>
> during the cull traversal (my overload was rewriting the node's center,<br>
> radius and InitialBound...)<br>
<br>
</span>If you've got a crash it'll likely be because what you are doing<br>
somewhere is buggy, perhaps an assumption somewhere. Overriding<br>
addChild/insertChild() won't cause a crash if done properly.<br>
<br>
In the case of paged databases nodes are added and removed, the later<br>
can cause problems such as if your code just uses C pointers to these<br>
nodes assuming that they'll always be around.<br>
<br>
I can't say what might have caused the crash for you as I know nothing<br>
about the code you've written or what the crash is, or exactly what<br>
circumstances it happens in.<br>
<br>
You'll have a debugger, your have your code, your data, you're the<br>
person best placed to debug it.<br>
<span class="HOEnZb"><font color="#888888"><br>
Robert.<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</div></div></blockquote></div><br></div>