Mr. Awesome
10-08-2006 23:48:14
When I try to run an app with the line m_SceneManager->setOption("addLoadTileListener", m_LoadTileDelegate); I get an unhandled exception. It happens in the function addLoadTileListener, more specifically list::push_back, even more specifically list::end. Here is my code:
And yes, I've tried the method of downcasting and passing "PagingLandScapeSceneManager" instead of the ST mask, with the same results. I've also tried it in release mode. I'm using the SDK version of PLSM2 and Ogre 1.2.0. Any ideas as to what could be causing the problem?
m_SceneManager = m_Root->createSceneManager(Ogre::ST_EXTERIOR_REAL_FAR, "PLSM");
m_LoadTileDelegate = new Ogre::PagingLandscapeDelegate;
m_UnloadTileDelegate = new Ogre::PagingLandscapeDelegate;
m_LoadTileDelegate->bind(this, &GraphicsManager::TileLoaded);
m_UnloadTileDelegate->bind(this, &GraphicsManager::TileUnloaded);
m_SceneManager->setOption("addLoadTileListener", m_LoadTileDelegate);
m_SceneManager->setOption("addUnloadTileListener", m_UnloadTileDelegate);
And yes, I've tried the method of downcasting and passing "PagingLandScapeSceneManager" instead of the ST mask, with the same results. I've also tried it in release mode. I'm using the SDK version of PLSM2 and Ogre 1.2.0. Any ideas as to what could be causing the problem?