Problem running in debug mode

NoodlesOnMyBack

19-02-2008 06:57:38

I managed to run the binary demos OK.
Then i configured the PLSM2 solution (plsm2_vc8.sln) and build everything just fine in debug and release mode.
But when i run the Demo_PagingLandScape2 project it trows:

Unhandled exception at 0x03047222 (Plugin_PagingLandScapeSceneManager2_d.dll) in Demo_PagingLandScape2.exe: 0xC0000005: Access violation reading location 0x00000000.

This is in:
OgrePagingLandScapeOctreeSceneManager.cpp


//---------------------------------------------------------------------
void PagingLandScapeOctreeSceneManager::registerCamera (PagingLandScapeOctreeCamera *c)
{
mPagingLandScapeOctree->traversal(RegisterCameraTraversal(c), 0);
}
//---------------------------------------------------------------------


The Plugin_PagingLandScapeSceneManager2_d.dll is the one compiled by me and the rest of the DLLs are ok i think.
I have VS8.0 running, last source stable version of Ogre, and the PLSM2 CVS version downloaded through Tortoise, i searched for similar errors but nothing.

Nodrev

29-02-2008 14:38:50

The dll is OK, the problem is that you render a frame with no camera: c=0x0
Look a few posts ago, the problem is that you need to call loadStaticGeometry before the render update method (it's not intuitive, but plsm init is camera in this method).

dudeabot

15-07-2008 16:50:24

i didnt find this post (i know it was on february)

and im having the same problem..

what is it supposed to be?

Buckcherry

15-07-2008 19:26:55

You have to define _PLSM_OCTREE in the preprocessor settings of your PLSM2 project.

Just follow the following thread, which clarifies a lot of things:

http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=7265

dudeabot

15-07-2008 21:39:05

thanks, i though there was another solution, but i see this is the only way :?