错误24打开了太多文件 [英] Error 24 too many files open
本文介绍了错误24打开了太多文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在做游戏.它需要很多图像.在正常情况下使用该应用程序时,它将运行良好.但是,当它急时出现错误24时-打开太多文件.
我搜索了它,但没有得到适当的答案.
请回复.
注释格式的代码:
-(void)flowerImagesAnimate {
self.flowerImage.animationImages = self.flowerArray;
self.flowerArray = nil;
self.flowerImage.animationDuration = 1.0;
self.flowerImage.animationRepeatCount = 3;
[self.flowerImage startAnimating];
}
– Munnu 1小时前
解决方案
不要打开太多文件.
如果您打开的空间超过了所需,请关闭它们.如果需要打开的空间太多,请将它们收集成一张较大的图像,然后分批使用.
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
解决方案
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.
这篇关于错误24打开了太多文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文