MSVC allows you to generate debug info even in Release Mode; make sure
you set the Debug Information Format in the C++ project options, and
tell the Linker to generate Debugging output. That might produce more
useful information when you run in the debugger.
HTH,
Thanks,
that´s a good idea. Actually the program crashes here:
MyIntersections.clear();
if (LineIntersector.containsIntersections() ){
osgUtil::LineSegmentIntersector::Intersections MyInts =
LineIntersector.getIntersections();
for
(osgUtil::LineSegmentIntersector::Intersections::iterator it =
MyInts.begin();
it != MyInts.end(); ++it)
MyIntersections.push_back(it->getWorldIntersectPoint() );
SetPosition(LineIntersector.getFirstIntersection().getWorldIntersectPoint()
);
} //Here is the crash
else
SetPosition(osg::Vec3(0, 0, 0) );
in the destructor of osgUtil::LineSegmentIntersector::Intersection (the
crash is where the Intersections - vector goes out of scope).
I´ll have a look at that destructor, but maybe Robert has an idea about
that, too.
Regards,
Andreas
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/