Hi Matthias,

On 8/30/07, Matthias Weigand <[EMAIL PROTECTED]> wrote:
> I was trying to get the basic geometry example working.
>
> Here's is a similar problem i had with the ScreenIdentifier.
>
> VectorGLuint test;
> test.push_back(3); //works
>
> VectorGLuint* test2 = new VectorGLuint();
> test2->push_back(3); //works
>
> DrawElementsUInt* pyramidBase = new
> DrawElementsUInt(PrimitiveSet::QUADS, 0);
> pyramidBase->push_back(3); //crashes with "invalid null pointer"
>
>
> pyramidBase itself is definitely != NULL. The exception is thrown from
> somewhere inside Microsofts STL.

What version of VS are you using?  VS7.x onwards should be fine, VS6.0
you'll need to patch with STLport.

However, the error you are getting is so odd, I suspect deeper wrong
in your set up, even VS 6.0 wasn't this flaky.  I really don't know
what you are doing in your code and build setup, but you're having
problems that no one else has ever reported.


> My includes are no more than:
> #include <osgViewer/Viewer>
> #include <osg/PositionAttitudeTransform>
> #include <osg/Geometry>
>
> Someone else having these problems? I didn't change any of my compiler
> settings, this is a new MSVS8 empty win32 console project.
> May i be better off, compiling the latest development version of osg?

The latest OSG version won't make any different, the problem is you
have is more fundamental that anything to do with the OSG.

Please have a look at OSG examples, do they work OK?  Compare these to
your own code, also compare the compiler settings.

> Another question:
> OpenInventor's feature list contains "introduces a simple event model
> for 3D interaction". Does it mean, that simple actions like moving some
> 3D objects can be described within the .iv file? If so, does
> OpenSceneGraph support it?

No, we just support scene graph elements of Inventor.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to