[osg-users] how to use StateSetManipulator in mfc?

Robert Osfield robert.osfield at gmail.com
Tue Jul 8 01:16:56 PDT 2008

Hi Forest,

The StateSetManipuilator has nothing to do with window specific code,
it pure C++, so is unlikely to be directly related to the problem you
are seeing.   More likely is that there is another problem that is
lurking all the time.  I know this doesn't help much, but hopefully
should allow you to look beyond the StateSetManipulator itself.


2008/7/8 forest37 <forest37 at 163.com>:
>  hi all,
>      when i use StateSetManipulator in mfc like this:
>     mViewer->addEventHandler( new
> osgGA::StateSetManipulator(mViewer->getCamera()->getOrCreateStateSet()) );
>      It's ok when the program runs,but when the program is closed ,it
> encounters an error at
>      void __CLR_OR_THIS_CALL _Container_base::_Orphan_all() in file xutility
> which is a mfc src file.
>      anyone meets such problem?
> forest
> ________________________________
> 渊波阔宅 湖景人生
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list