I'm trying to learn how OpenSceneGraph work, so I've follow some tutorial. So far, everything worked, but now, I got problem with text.
I got no building error, but when i'm launching the program, i got the following messages :
(1) "Unhandle exception at 0x73F12252 (msvcr100.dll) in myprograme : 0xC0000005: Access violated when reading 0x00AEE000"
(2) "Unhandle exception at 0x1000AF10 (osg80-osgText.dll) in myprograme : 0xC0000005: Access violated when reading 0x00194000"
I've already check the dll, tried to put them in the launch folder, but it changes nothing.
Here's the piece of code where it happens :
osg::Vec3 pyramidTwoPosition(15, 0, 0);
pyramidTwoXForm->setPosition(pyramidTwoPosition);
testText->setCharacterSize(25);
testText->setFont("../arial.ttf"); //Error (1)
testText->setText("Test text"); //Error (2)
testText->setAxisAlignment(osgText::Text::SCREEN);
testText->setPosition(osg::Vec3(0, 0, 0));
testText->setColor(osg::Vec4(1, 0, 0, 1.0f));
osg::Geode* textGeode = new osg::Geode();
textGeode->addDrawable(testText);
pyramidTwoXForm->addChild(textGeode);