I run the SampleFTPSample source code (iOS6.0 SDK, Xcode4.5)which downloaded from iOS Developer Center. SampleFTPSample
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?
Thank you very much.
yeahh!! I finally got the solution. I invoked uialertview show after main thread gets finish.So that it wont crash now. It is in mine case. So don't have an exact answer but you can also apply this peterlawn. May be it will be usefull to you to as well. !!
do this by setting the kCFStreamPropertyFTPAttemptPersistentConnection property to false, immediately after creating the stream (using CFReadStreamCreateWithFTPURL). Here's what that might look like:
}