When I use CCTextureCache::sharedTextureCache()>addImageAsync, my application don’t quit and freeze.>removeAllTextures;
When I write code like this:
void TestController::closeCallback
{
CCTextureCache::sharedTextureCache
CCTextureCache::sharedTextureCache~~>purgeSharedTextureCache;
}
have exception in module CCScheduler.cpp:
void CCScheduler::removeHashElement
{
ccArrayFree;
pElement~~>target~~>selectorProtocolRelease; // <<<<<<<<<< Here exception
pElement~~>target = NULL;
HASH_DEL(m_pHashForSelectors, pElement);
free(pElement);
}
Can anyone encountered a similar problem?
P.S. I have this problem in Windows version of Marmalade simulator. When run on the Android device, application quit without errors.
After run TextureCacheTest scene on android device, test application need to kill by task manager…