First, please see my recent post on debugging aids.

Second, you have five vertices and four colors, but you have your color
binding set to BIND_PER_VERTEX, which seems wrong.

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Sh Ha
Sent: Saturday, April 18, 2009 4:31 AM
To: [email protected]
Subject: [osg-users] OSG begginer question - osg crush on run-time

Hi!

Im very new to osg, im trying to compile and run a very simple code that use
osg (basicgeon.cpp is attached)

when its gets to the last 3 lines, its crush on the third one

                   ...
                   osgViewer::Viewer viewer;
           viewer.setSceneData( root );
->         return viewer.run();

the project compile properly and crush on runtime, i set the include and lib
directories as needed, and the used lib in release(osg.lib, osgViewer.lib)

i set the output directory and workdir to \osg\bin so it will find the dll's

im using visual studio 9.0 on VISTA ... (i suspect something with it
[Crying or Very sad] )

i download all the binaries from
http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-2.8/b
inaries/Windows/VisualStudio9
(extracted the debug files then the release files with 7zip)

i tried in debug too ,still crush(added the d for the required lib files..)

i tried to run the created exe from outside the visual,still crush..

the crush looks like this:
[Image:
http://images.upload2world.com/get-4-2009-upload2world_com_lmjodx.jpg ]
(http://www.upload2world.com) 


im really dont know what else to do and kinda stuck

thanks alot for any help!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=10364#10364




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

Reply via email to