[BUG?] PageManager loses scope

HexiDave

04-07-2006 19:23:10

Has there been a change in the latest CVS and SDK that causes a problem using PagingLandScapePageManager::getPage()? It seems whenever I use it now, the PageManager goes out of scope or something - the terrain still loads fine, just when I try to access with something like:

mSceneMgr->getPageManager()->getPage(5,5);
*mSceneMgr is a PagingLandScapeSceneManager*, but I've used it like that for quite a while without this issue.*
It breaks inside getPage() at:

if (x < mWidth && z < mHeight)
mWidth and mHeight are inaccessible - seems like mPageManager went dead.

The callstack isn't any help at all, just goes straight from where I called it.

Using VS 7.1, tried SDK and latest CVS in Debug mode, will try to recompile in Release, but I really don't see that helping much.

I'm also going to try to create a totally stripped down application with the bare minimum to see if it happens there as well.

Thanks for any help.

tuan kuranes

05-07-2006 11:00:08

Has there been a change in the latest CVS and SDK that causes a problem using PagingLandScapePageManager::getPage()?
no change since a long time. (since azatoth to dagon...)
mWidth and mHeight are inaccessible - seems like mPageManager went dead.
mPagemanager is created on InitScene and deleted when scenemanager is deleted.
If it's dead it's a memory corruption problem.

HexiDave

05-07-2006 13:38:00

I'll look into it, I haven't had a chance yet to strip the program down, it's probably something to do with my debugging setup - these problems started around that time.

Good to know you haven't changed anything - I thought I missed an update somewhere :D

Appriciate the input.

EDIT: Just tested in Release mode and all is well - gonna have to see if one of the debugger settings is causing the problem.