Ogre::FileInfoListPtr Release Exception,please help me.

Problems building or running the engine, queries about how to use features etc.
HelloUpdate
Gnoblar
Posts: 1
Joined: Sun Aug 05, 2012 4:32 pm

Ogre::FileInfoListPtr Release Exception,please help me.

Post by HelloUpdate »

my code:
Ogre::ResourceGroupManager * pRGManager = Ogre:: ResourceGroupManager::getSingletonPtr();
Ogre::FileInfoListPtr ResourceInfos;
ResourceInfos = pRGManager->findResourceFileInfo(groupName, "*." + extension, false);

it works when load from directory,but when zip file occur a error.
error on OGRE_DELETE_T(pRep, T, MEMCATEGORY_GENERAL);

sdk build from ogre 1.8 source with vs2005,windows xp.
please help me.

virtual void destroy(void)
{
// IF YOU GET A CRASH HERE, YOU FORGOT TO FREE UP POINTERS
// BEFORE SHUTTING OGRE DOWN
// Use setNull() before shutdown or make sure your pointer goes
// out of scope before OGRE shuts down to avoid this.
switch(useFreeMethod)
{
case SPFM_DELETE:
OGRE_DELETE pRep;
break;
case SPFM_DELETE_T:
OGRE_DELETE_T(pRep, T, MEMCATEGORY_GENERAL);====================//this line
break;
case SPFM_FREE:
OGRE_FREE(pRep, MEMCATEGORY_GENERAL);
break;
};
// use OGRE_FREE instead of OGRE_DELETE_T since 'unsigned int' isn't a destructor
// we only used OGRE_NEW_T to be able to use constructor
OGRE_FREE(pUseCount, MEMCATEGORY_GENERAL);
OGRE_DELETE_AUTO_SHARED_MUTEX
}