uberglitch
15-11-2007 01:40:05
Hi again, I'm using a custom Character class of the form:
and creating the character like so:
but when it comes time to delete it, using:
My program crashes on the world->getScenes... line. The same thing happens when I use "delete mScene";
The particular error I get is:
HEAP[WIP.exe]: Heap block at 07275618 modified at 072756F4 past requested size of d0. Which says to me that it's unable to delete my custom character, but I can't be sure.
Any advice?
Thanks,
Uberglitch
class PlayerCharacter : public NxOgre::Character { .... }
and creating the character like so:
player = (PlayerCharacter*)mScene->createCharacter(name, Vector3(x, y, z), "type: box, dimensions: 1 2 1, Group: player");
player->setVariableX();
player->setVariableY();
player->blah blah...
but when it comes time to delete it, using:
//NxOgre clean up
if(world){
world->getScenes()->destroyAllOwned();
}
My program crashes on the world->getScenes... line. The same thing happens when I use "delete mScene";
The particular error I get is:
HEAP[WIP.exe]: Heap block at 07275618 modified at 072756F4 past requested size of d0. Which says to me that it's unable to delete my custom character, but I can't be sure.
Any advice?
Thanks,
Uberglitch