Hi Kevin,

On 17 September 2013 14:26, Kevin Virmani <[email protected]> wrote:

> I try to start a very simple programm on Win7 with VS10. but everytime it
> crashes. What did I do wrong?
>

You used Windows :-)

Seriously, though it could well be a VisualStudio build and linkage issue,
check that you built your application with all the same settings as the OSG
was built as this is a very common gotcha with VisualStudio - it can't mix
different types of libs such as debug/release etc.

The only other issue that might be amiss might be the the load is failing
and returning a NULL, the viewer should not crash though even when you
apply a NULL to it and run the viewer.  As general guide should always
check the return data from a read operations rather than assume that it's
valid, if you file is not found for some reason readNodeFile will return a
NULL.

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

Reply via email to