alexjc
10-06-2006 17:41:52
In my app, I create a mesh from a manual object. Then after a simple main loop that draws the mesh succesfully, I execute "del mesh" shortly followed by "del app". This crashes when the real mesh destructor is called much later, because all the Ogre singletons have been de-initialized.
Now this approach has worked fine in a lot of my earlier tests, but now I'm doing something slightly more complex (procedural skinning) it crashes. I presume there's a leaked reference to a mesh somewhere...
So I have a few questions:
1) It is possible to track down where the leaked reference is? (There's no obvious place in the code where this could happen.)
2) How can I force PyOgre to delete that object when I know the application is going to exit?
3) What's the recommended way of dealing with such issues so that python doesn't crash when destroying Ogre objects in the wrong order?
Any insights would be greatly appreciated!
Alex
Now this approach has worked fine in a lot of my earlier tests, but now I'm doing something slightly more complex (procedural skinning) it crashes. I presume there's a leaked reference to a mesh somewhere...
So I have a few questions:
1) It is possible to track down where the leaked reference is? (There's no obvious place in the code where this could happen.)
2) How can I force PyOgre to delete that object when I know the application is going to exit?
3) What's the recommended way of dealing with such issues so that python doesn't crash when destroying Ogre objects in the wrong order?
Any insights would be greatly appreciated!
Alex