当应用在ipad中运行10分钟时,错误= 24 [英] error = 24 when application run for 10 mins in ipad

查看:265
本文介绍了当应用在ipad中运行10分钟时,错误= 24的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个应用程序,其中包含一个带播放按钮的屏幕,可播放音频文件。运行应用程序10分钟后出现问题;它会在控制台中抛出此消息:

I have created an application which consists of a screen with a play button to play an audio file. The problem occurs after running the application for 10 minutes; it throws this message in the console:


ImageIO:CGImageRead_mapData'open'
failed
'/ Users / indianic / Library / Application
支持/ iPhone
模拟器/ 4.2 /应用程序/ A511E515-6FEA-4D0D-A5C5-95740B14C858 / VisualMath.app / pi_play.png'
错误= 24文件)

ImageIO: CGImageRead_mapData 'open' failed '/Users/indianic/Library/Application Support/iPhone Simulator/4.2/Applications/A511E515-6FEA-4D0D-A5C5-95740B14C858/VisualMath.app/pi_play.png' error = 24 (Too many open files)

这些消息后,应用程序崩溃。任何人都知道为什么会出现此问题以及如何解决这个问题。

After these message the application crashes. Anyone knows why this problem occurs and how to fix it?

提前感谢。

推荐答案

由于我在同一个应用程序中的数据库工作有一些点,我需要启动sql查询两次。因为我有火查询两次数据库文件没有得到接近,因为该文件在我的应用程序打开许多时间。并且因为应用程序崩溃与给出此错误。

As I have work with database in the same application there is some point where i need to fire sql query twice. because I have fire query twice the database file is not getting close and because of that the file open many time in my application. and because of that the application is crash with giving this error.

因此,请务必检查数据库文件是否接近或不存在此类错误。

so always check for the database file is getting close or not for this kind of the error.

这篇关于当应用在ipad中运行10分钟时,错误= 24的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆