What OS/Compiler ? 0xCDCDCDCD indicates allocated in heap, but not initialized.
Did the new for pyramidBase succeed ? There has been some discussion recently about issue with STL/Debuging being turned off and causing issues for some VS2005/VS2008 ( I have not seen this but a couple of others have but I'm only using VS2005) it may or may not be related __________________________________________________________ Gordon Tomlinson Email : [EMAIL PROTECTED] Website : www.vis-sim.com www.gordontomlinson.com __________________________________________________________ "Self defence is not a function of learning tricks but is a function of how quickly and intensely one can arouse one's instinct for survival" -Master Tambo Tetsura -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Ferrier Sent: 01 June 2008 05:39 To: [email protected] Subject: [osg-users] Crash on first example - push_back call Hi, I'm just starting out with OSG - so direct me to the correct place if need be. I'm trying the first tutorial example on the wiki and I dump on line 33 - at the push_back call. Unhandled exception at 0x6c57797f in T01.exe: 0xC0000005: Access violation writing location 0xcdcdcdcd. There is an earlier use of push_back on a Vec3Array, however the problem seems to be with the DrawElementsUInt Looks like DrawElementsUInt isn't quite initializing the STL vector correctly(?). I feel I'm missing something obvious and you can direct me to the fix. Tutorial example crashes on the push_back call below: ... // Create a primitive set and add it to the pyramid geometry. osg::DrawElementsUInt* pyramidBase = new osg::DrawElementsUInt(osg::PrimitiveSet::QUADS, 0); pyramidBase->push_back(3); pyramidBase->push_back(2); ... Full code listing can be found here: http://www.openscenegraph.org/projects/osg/attachment/wiki/Support/Tutorials /BasicGeometry/BasicGeometry.2.cpp Thanks! TDL _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

