1

UIWebView用作我的 html5 应用程序的包装器。应用程序实现了很多视频流 - 并且是中等大小(JS 代码)。

当我积极使用它时,我收到很多错误:

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 浏览器中运行良好。

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

4

1 回答 1

0

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

于 2013-09-07T04:49:57.120 回答