mobile_house_arrest [xxx]<错误>:最大打开文件:78 [英] mobile_house_arrest[xxx] <Error>: Max open files: 78

查看:289
本文介绍了mobile_house_arrest [xxx]<错误>:最大打开文件:78的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 UIWebView 作为我的html5应用程序的包装器。应用程序实现了大量的视频流 - 中等大小(JS代码)。

I'm using UIWebView as a wrapper around my html5 application. Application implements a lot of video streaming - and is medium size (JS code).

当我主动使用它时,我收到很多错误:

When I actively use it I receive a lot of errors:

Jul 31 13:21:34 iPad mobile_house_arrest[483] <Error>: Max open files: 78

Jul 31 13:21:34 iPad mobile_house_arrest[485] <Error>: Max open files: 78

...

Jul 31 13:21:35 iPad mobile_house_arrest[505] <Error>: Max open files: 78

在设备的控制台中 - 它停止响应。同时它在同一设备上的Safari浏览器中运行良好。

in the device's console - and it stops to respond. Meantime it works great in Safari browser on the same device.

是否有任何已知的内存泄漏问题或我可以应用的更好的解决方法?

Is there any known memory leak issue or better workaround that I can apply?

推荐答案

您可能正在使用fopen或NSFileHandle等来创建文件句柄,但您没有正确关闭它们(例如,如果您使用 FILE * fopen(const char * filename,const char * mode)然后你应该使用 fclose(FILE * stream)关闭文件 )。在iPhone设备中只能同时打开最多78个文件。

You might be using "fopen" or "NSFileHandle"..etc to create file handles but you are not closing them appropriately (eg if you are using FILE * fopen ( const char * filename, const char * mode ) then you should close file using fclose ( FILE * stream ))".Only max 78 files can be opened simultaneously in iPhone device.

这篇关于mobile_house_arrest [xxx]&lt;错误&gt;:最大打开文件:78的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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