Error 24 too many files open

泄露秘密 提交于 2019-12-25 14:47:57

问题


I am doing a game. it requires lots of images. When using the app in normal case it will be quite running fine. But when it rash then i get the error 24 - too many files open.

I searched it but , i didn't get the appropriate answer.

please reply.

Code from comment formatted:

-(void)flowerImagesAnimate {
    self.flowerImage.animationImages = self.flowerArray;
    self.flowerArray = nil;
    self.flowerImage.animationDuration = 1.0;
    self.flowerImage.animationRepeatCount = 3;
    [self.flowerImage startAnimating];
}

– Munnu 1 hour ago


回答1:


Don't open so many files.

If you have more open than you need, close them. If you need that many open, collect them in to 1 larger image and use portions.



来源:https://stackoverflow.com/questions/7687550/error-24-too-many-files-open

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!