asihttprequest
ASIHTTPRequest setDownloadDestinationPath crashing
I have this simple code: NSURL *urltmp = downloadContentURL; NSURL *url = [urltmp URLByAppendingPathComponent:file]; NSLog(#"url is: %#", url); ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setDownloadDestinationPath:[self applicationSupportDirectoryWithFilename:file]]; [request setDidFinishSelector:#selector(requestFinished:)]; [request setDelegate:self]; [request setDidFailSelector:#selector(requestFailed:)]; [request setShowAccurateProgress:YES]; [request setDownloadProgressDelegate:self]; [request startAsynchronous]; I am using setDownloadDestinationPath in order to write the file to disk directly, and not in memory. The file is 80MB so is crashing on the device when downloading in memory. Code works fine in the simulator, but on the device is crashing with: Thread 2: Program received signal: EXC_BAD_INSTRUCTION. [((ASIHTTPRequest*)clientCallBackInfo) handleNetworkEvent: type]; Please assist regards, Bill.
Solved by swapping minimum build settings from 4.0 to 4.1. Maybe something was missing from 4.0. Thanks...
Related Links
ASIHTTP JavacriptCore WTFCrash
Downloading data using ASIHttpRequest
ASINetworkQueue without setting DownloadDestinationPath
I am using ASIHTTPREquest I am geeting some issue in MAc OSx xcode 3.1
What to do now that asihttprequest's owner stopped working on the project?
ASIHttPRequest didReceiveData- how to populate responseData, responseString?
RestKit with ASIHTTPRequest
ASIHTTPRequest backed RestKit object mapping
ASIHTTPRequest begins but never ends
MBProgressHUD with ASIHTTPRequest
ASIHTTPRequest and ASINetworkQueue and JSON Parsing
iOS 5 Hanging on ASIHTTPRequests
ASIHTTPRequest authentication needed when not on WiFi, with credentials given
Get return value within an ASIBasicBlock
ASIHTTPRequest setDownloadDestinationPath crashing
ASIHTTPRequestErrorDomain Code=4 “The request was cancelled”