bad access at the destructor OgreFramework::~OgreFramework()

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
dowi
Halfling
Posts: 48
Joined: Wed Sep 07, 2011 3:37 am

bad access at the destructor OgreFramework::~OgreFramework()

Post by dowi »

hi

i'm using the xcode 4 template and ogre 1.8 and i have a problem:

OgreFramework destructor has :

Code: Select all

#ifdef OGRE_STATIC_LIB
    m_StaticPluginLoader.unload();
#endif
    if(m_pRoot)     delete m_pRoot;
but unless i remove m_StaticPluginLoader.unload();
i get an error EXC_BAD_ACCESS at the 'delete root'

if i switch the lines i get an error in in the unload.

does the deletion of the root unloads the plugins?
is it ok to remove the unload line?
thanks alot!!