Hi trolo, please provide more info. There is no chance that someone could guess what is happening at your end given the information input. The osg::GraphicsContext::Traits class has been around for many years and is used in more or every OSG based application. There may be something wrong with it, but saying so requires one to provide some proof ;)
cheers Mattias On Tue, Jan 13, 2015 at 12:57 PM, Boris Ze Blade <nospa...@yandex.ru> wrote: > Hi, > > i am trying to embed osg::Viewer into a window form but can't get past these > 2 lines: > > osg::ref_ptr<osg::GraphicsContext::Traits> traits = new > osg::GraphicsContext::Traits(); > traits->inheritedWindowData = new > osgViewer::GraphicsWindowWin32::WindowData(hwnd); > > There is something wrong with osg::GraphicsContext::Traits, i get access > violation. Osg version = 3.0.1, msvs 2010. > Thank you! > > Cheers, > trolo > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=62306#62306 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org