Hi David, Given the details it's not possible to know what might be going wrong. You are the person best placed to dig into the code and run it in a debugger to see what is happening. It could be a threading issue, but really can't say with just small code segments to work with. Try running the application SingleTheaded to see if it makes any difference.
Also if you are accessing any data structures try copying them or taking a ref_ptr<> to them before you start working on them, perhaps the data structure is be deleted by another thread. Robert. On 21 August 2013 15:23, David Zaadstra <[email protected]>wrote: > Hi, > > I had the same question and considered myself lucky to find this solution > so quickly, but I have a problem: > > Sporadically, my application crashes in the std::vector code with "vector > iterator not dereferencable". This happens in the call to back(). > > Actually I would think that this crash can't happen because I copied your > code including the empty() query which should ensure that back() works. The > only difference in my code is that I had to add .get(), but I don't think > that makes a difference. > > Do you have any idea why this could crash? I'd guess it's some kind of > multithreading issue. Is there anything in osg I should be worrying about > here? > > Thanks and Regards, > David > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=55935#55935 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

