MFC reloading ogre in runtime
Posted: Fri Feb 11, 2005 10:18 am
Hi.
As an newbie i welcome moderators and bossy people here...
I am coding an MFC application in .NET 2003 VC++
application uses ogre engine to present some models ...
since model presenting is only a part of project i create Root, window , and so on when it is needed and when i want to finish rendering.
Problem is following..
what is proper way of getting rid of ogre ?
in demos ogre is only deleted but since applicaton is suddenly closed after it there is no problem with memory and other fallacies.
When i close ogre sometimes everything is fine , but after couple of reloads (in one run) program throws a an exception , almost everytime in random places (sometimes null ptr assigment) , which are called from plugins , or memory manager....
I am quite experienced programmer and i double checked other memory issues in my program to ensure that they don't interfere.
As an newbie i welcome moderators and bossy people here...
I am coding an MFC application in .NET 2003 VC++
application uses ogre engine to present some models ...
since model presenting is only a part of project i create Root, window , and so on when it is needed and
Code: Select all
delete(mRoot);Problem is following..
what is proper way of getting rid of ogre ?
in demos ogre is only deleted but since applicaton is suddenly closed after it there is no problem with memory and other fallacies.
When i close ogre sometimes everything is fine , but after couple of reloads (in one run) program throws a an exception , almost everytime in random places (sometimes null ptr assigment) , which are called from plugins , or memory manager....
I am quite experienced programmer and i double checked other memory issues in my program to ensure that they don't interfere.
