fix posted to osg-submission -Nick
On Mon, Feb 22, 2010 at 9:57 AM, Trajce (Nick) Nikolov < [email protected]> wrote: > Hi Robert, > > in osgWidget::Window in this method > > bool Window::_setWidget(Widget* widget, int index) { > .... > HERE ---->>>> if(index < 0) _objects.push_back(widget); > > widget is not NULL, but after adding it into the vector, the _objects > vector contains NULL vector > > Not familiar yet with the observer_ptr stuff, hopefully this will gives you > an idea whats going on > > > -Nick > > > > On Mon, Feb 22, 2010 at 9:40 AM, Trajce (Nick) Nikolov < > [email protected]> wrote: > >> Hi Robert, >> >> osgwidget crashes in ref_ptr >> >> > osg63-osgd.dll!osg::ref_ptr<osg::Array>::get() Line 90 + 0x11 bytes >> C++ >> osg63-osgd.dll!osg::Geometry::getVertexArray() Line 139 + 0x1c bytes >> C++ >> osg63-osgWidgetd.dll!osgWidget::Widget::_verts() Line 404 + 0x19 bytes >> C++ >> osg63-osgWidgetd.dll!osgWidget::Widget::setDimensions(float >> x=0.00000000, float y=0.00000000, float w=-1.0000000, float h=-1.0000000, >> float z=-1.0000000) Line 137 + 0x8 bytes C++ >> osg63-osgWidgetd.dll!osgWidget::Widget::setOrigin(float x=0.00000000, >> float y=0.00000000) Line 194 C++ >> osg63-osgWidgetd.dll!osgWidget::Box::_resizeImplementation(float >> w=0.00000000, float h=0.00000000) Line 130 C++ >> osg63-osgWidgetd.dll!osgWidget::Window::resizeAdd(float >> diffWidth=0.00000000, float diffHeight=0.00000000) Line 265 + 0x20 bytes >> C++ >> osg63-osgWidgetd.dll!osgWidget::Window::resize(float width=0.00000000, >> float height=0.00000000) Line 249 C++ >> osg63-osgWidgetd.dll!osgWidget::Window::_setWidget(osgWidget::Widget * >> widget=0x02941fe8, int index=-1) Line 489 C++ >> osg63-osgWidgetd.dll!osgWidget::Window::addWidget(osgWidget::Widget * >> widget=0x02941fe8) Line 891 C++ >> >> osg63-osgWidgetd.dll!osgWidget::WindowManager::WindowManager(osgViewer::View >> * view=0x00dafe44, float width=1280.0000, float height=1024.0000, unsigned >> int nodeMask=4026531840, unsigned int flags=8) Line 74 + 0x30 bytes C++ >> >> >> down to >> >> T* get() const { return _ptr; } >> >> Windows7 platform, VS 2005 >> >> I ll try to nail it down why >> >> -Nick >> > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

