Hi Thibault, Usually i'm using MinGW with MSYS, which made it a lot easier to compile source archives. So i don't have very much experience with Microsofts C runtime. With MinGW i never encountered problems with prebuilt binaries, so i guess their different runtime versions are much more consistent. This project i'm constrained to use MSVC++, so i will take your advice.
Thanks for your help. -- Matthias Thibault Genessay wrote: > Hi Matthias > > On 8/30/07, *Matthias Weigand* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi again, > > I'm using Microsoft Visual Studio 2005 Professional (which is 8.0) > with > Service Pack 1 installed. > > I used prebuilt osg binaries, may this be an issue? Maybe these were > built with another version of STL, which may cause problems. > > > Windows is very sensitive to DLL versions mismatch. It won't raise > warnings at compile time but will cause weird crashes like the ones > you are experiencing. It used to be even worse when there were 3 > different CRTs (VS6, VS7). Now even though the multithreaded DLL CRT > has become the default, you can still experience crashes/inconsistencies. > > The rule that you should stick to is: if you are a developer you > *must* use binaries compiled on the same system than your application > if they are C++. The only prebuilt DLLs that can be safely used are > the pure C DLLs. For the OSG case, it means that it is safe to use the > prebuilt 3rd party binaries, but you need to build your own > OpenThreads/OSG binaries. > > So I'm 100% confident that Robert's advice to build from source will > fix your errors. > > Thibault > > > Thanks, > -- Matthias > > > > > Robert Osfield wrote: > > Hi Matthias, > > > > On 8/30/07, Matthias Weigand <[EMAIL PROTECTED] > <mailto:[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] > <mailto:[email protected]> > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > _______________________________________________ > osg-users mailing list > [email protected] > <mailto:[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 > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

