Help - Stack overflow when loading an OSM file

azrialelf

08-01-2008 13:52:31

Hello all,
I wrote a program late last year (November was my last update) and had my computer crash badly a few days ago. I reinstalled OGRE and oFusion and tried to run my program but I'm getting a stack overflow from the OgreOSMScene.cpp. Im very confused because the program ran fine before I had to reinstall OGRE and oFusion, so was something changed in either OGRE or oFusion recently that would cause this?

The exact line of code causing the stack overflow is:

SceneNode* pSceneRoot = mSceneMgr->getRootSceneNode()->createChildSceneNode();


It's in the OSMScene::createSceneManager method of oFusion. Any insights would be very helpful.

This is a fresh install of Visual studio as well, so maybe there are some project settings I need to change or something? I don't think I should need to change any of the code inside oFusion so it must be some settings somewhere.... I just don't know where.

Lioric

08-01-2008 15:44:23

Are you using the Ogre SDK or from sources?

It might be that you have mixed debug and release libs and settings in your project

The line you posted must not produce a stack overflow as it is not a reentrant method, it must be because you project is misconfigured (you have compiled with a different ogre lib than the dll file what you are using with your program)

azrialelf

08-01-2008 21:35:51

Hmmm I think you are right, I may be mixing library versions. I know my project folder has a few OGRE DLLs in it and I've also linked the OGRE root folder in the project settings, so it may be mixing older and newer files. I'll go through the project and make sure I update ALL the DLLs to the newest versions. Thanks!