yubgipenguin
24-12-2008 04:00:00
But it crashes when I use this code:
which is by the way a code snippet from PCZTestApp.cpp with added:
It seems like it is supposed to work but crashes without any msg.
And I actually first tried it with Python-Ogre and same result. (well it's same code anyways.) So no weird c++ problem.
It crashed on ExampleApplication.h line:92
here with Access Violation reading location 0xbf000000 and I'm guessing something is wrong on deletion process.
PS. I also tried deleting portals first and then deleting zones and it still crashes...
std::string terrain_cfg("terrain.cfg");
std::string zoneName("Terrain2_Zone");
PCZone * terrainZone = createTerrainZone(zoneName, terrain_cfg);
((PCZSceneManager*)mSceneMgr)->destroyZone(terrainZone, true);
which is by the way a code snippet from PCZTestApp.cpp with added:
((PCZSceneManager*)mSceneMgr)->destroyZone(terrainZone, true);
It seems like it is supposed to work but crashes without any msg.
And I actually first tried it with Python-Ogre and same result. (well it's same code anyways.) So no weird c++ problem.
It crashed on ExampleApplication.h line:92
mRoot->startRendering();
here with Access Violation reading location 0xbf000000 and I'm guessing something is wrong on deletion process.
PS. I also tried deleting portals first and then deleting zones and it still crashes...