Hi all!
  Some problems with osgIntrospection (again) :

       - first, I can't compile osgWrappers from the CVS:
g++  -O -W -Wall -fPIC -pipe -I../../../../include  -c ../GraphicsWindow.cpp
../../../../include/osgGA/GraphicsWindow:31: error: expected
class-name before '{' token
../GraphicsWindow.cpp: In constructor '<unnamed>::reflector25::reflector25()':
../GraphicsWindow.cpp:27: error: 'GUIActionAdapter' is not a member of 'osgGA'
../GraphicsWindow.cpp:27: error: 'GUIActionAdapter' is not a member of 'osgGA'
../GraphicsWindow.cpp:27: error: 'GUIActionAdapter' is not a member of 'osgGA'
../GraphicsWindow.cpp:27: error: 'GUIActionAdapter' is not a member of 'osgGA'
../GraphicsWindow.cpp:27: error: 'GUIActionAdapter' is not a member of 'osgGA'
../GraphicsWindow.cpp:27: error: template argument 1 is invalid
../GraphicsWindow.cpp:27: error: template argument 1 is invalid
../GraphicsWindow.cpp:27: error: template argument 3 is invalid
../GraphicsWindow.cpp:27: error: invalid type in declaration before ';' token
../GraphicsWindow.cpp:27: warning: unused variable 'btc'
       am I the only one ?

       - second, this is really funny, with the 1.2 release of
osgIntrospection I have some memory corruption problems when I use
this code:

                static const osgIntrospection::Type &t_referenced =
                        
osgIntrospection::Reflection::getType("osg::Referenced");

                const osgIntrospection::Type &type = v.getType();
                if (type.isNonConstPointer() &&
                        type.getPointedType().isSubclassOf(t_referenced))
                {
                /* COMMENTED.... this should work but the code above corrupts 
the memory
                        _referenced =
                                
osgIntrospection::variant_cast<osg::Referenced*>(_value);
                        // increase the number of references
                        if (_referenced)
                        {
                                _referenced->ref();
                        }
                        std::cout << "Referenced = " << _referenced << 
std::endl;
                 
--------------------------------------------------------------------------------------------
*/
                }

I'm trying to handle reference objects using osgIntrospection... I'm
not sure if this is the best way to do it.

Cheers,



--
 Jose L. Hidalgo ValiƱo (PpluX)
 ---- http://www.pplux.com ----
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to