Hello,

Many thanks to the "community" for a great scenegraph! I'm a new user but hope 
to contribute someday...

Anyway, I found this out the hard way on OSG 2.8.0...

Take any program w/ osgText (examples/osgtext in the distro works fine).

Change link options to link with these OSG libs, in this order:


Code:
osg.lib osgUtil.lib osgDB.lib osgText.lib osgVolume.lib



The exe will link fine, but as soon as you create an osgText... CRASH!!!

Now link with these osg libs, just like the Visual studio project does:


Code:
OpenThreads.lib osg.lib osgDB.lib osgUtil.lib osgGA.lib osgViewer.lib 
osgText.lib



Works fine!

I haven't gone in to figgure out why, I just wanted to throw this out there in 
case others have an exe where osgText does nothing but crash -- this may help.

In the debugger, it appears that osgText's osgDrawable parent members were not 
initialized... they were garbage like 222313 parents after the osgText was 
constructed.

Happy OSGing.

-Aron B.

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





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

Reply via email to