SONB
06-08-2006 13:24:53
Hi all!
I'm trying to impliment nxOgre into my project. I'm on tutorial 1 right now. My problem occurs on deleting the scene. This is the error message:
My code:
The debugger stops in the following function in new.cpp:
If I delete delete scene; ogre.log reports a memory leak.
My application was built in release mode.
I don't know why, but in debug mode the debugger asks me for ogremain.dll and not for ogremain_d.dll...
I'm using:
nxOgre CVS
PhysX 2.4.4
VS 2005
Can anyone help me? betajaen?
Thanx a lot in advance!
::SONB::
I'm trying to impliment nxOgre into my project. I'm on tutorial 1 right now. My problem occurs on deleting the scene. This is the error message:
Unhandled exception at 0x7c812a23 in Black Rain.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f1b4..
My code:
{
ogre = new Ogre::Root("", "");
...
sceneMgr = ogre->createSceneManager(Ogre::ST_GENERIC);
...
world = new nxOgre::world(ogre, sceneMgr);
scene = world->createScene("Main", sceneMgr);
...
// GAME LOOP
...
// END GAME LOOP
delete scene;
delete world;
delete ogre;
}
The debugger stops in the following function in new.cpp:
void *__CRTDECL operator new(size_t size) _THROW1(_STD bad_alloc)
{ // try to allocate size bytes
void *p;
while ((p = malloc(size)) == 0)
if (_callnewh(size) == 0)
{ // report no memory
static const std::bad_alloc nomem;
--> _RAISE(nomem);
}
return (p);
}
If I delete delete scene; ogre.log reports a memory leak.
My application was built in release mode.
I don't know why, but in debug mode the debugger asks me for ogremain.dll and not for ogremain_d.dll...
I'm using:
nxOgre CVS
PhysX 2.4.4
VS 2005
Can anyone help me? betajaen?
Thanx a lot in advance!
::SONB::