SampleFTPSample代码中的iOS 6 EXC

编程入门 行业动态 更新时间:2024-10-10 06:22:53
本文介绍了SampleFTPSample代码中的iOS 6 EXC_BAD_ACCESS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我运行从iOS开发人员中心下载的SampleFTPSample源代码(iOS6.0 SDK,Xcode4.5)。 SampleFTPSample

I run the SampleFTPSample source code (iOS6.0 SDK, Xcode4.5)which downloaded from iOS Developer Center. SampleFTPSample

作为图像,当我从ftpServer检索列表时,有时会出现EXC_BAD_ACCESS错误。我没有修改代码,我不知道为什么,我该如何修复它?

as the Images, when I retrieved a list from ftpServer, sometimes will get EXC_BAD_ACCESS error. I have not modified the code, I don't know why, and How can I fixed it?

非常感谢。

推荐答案

通过在创建流后立即将kCFStreamPropertyFTPAttemptPersistentConnection属性设置为false(使用CFReadStreamCreateWithFTPURL)来完成此操作。这可能是这样的:

do this by setting the kCFStreamPropertyFTPAttemptPersistentConnection property to false, immediately after creating the stream (using CFReadStreamCreateWithFTPURL). Here's what that might look like:

success = [selfworkStream setProperty:(__bridge id) kCFBooleanFalse forKey:(__bridge NSString *) kCFStreamPropertyFTPAttemptPersistentConnection ]; assert(success);

更多推荐

SampleFTPSample代码中的iOS 6 EXC

本文发布于:2023-11-26 19:22:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634870.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:代码   SampleFTPSample   EXC   iOS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!