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”

Categories

HOME
elasticsearch
spring-data
apache-nifi
mpdf
functional-programming
focus
activemq
hdfs
slider
mathematical-optimization
hyperledger
implicit-conversion
openfoam
mithril.js
graphql-js
jpa-criteria
selection
spring-security-oauth2
fireloop
getopenfilename
xbox360
rest-assured
web-deployment
cocos2d-android
gravity
exec-maven-plugin
pickle
boomi
multiple-tables
home
jitsi
rxjs5
websphere-portal
ini
animated-gif
react-dnd
router
boolean-logic
guice
fotorama
osx-lion
winrm
apptentive
java-stream
redgate
ng-repeat
android-n
praat
word-cloud
web-inspector
deployd
django-static-precompiler
sigsegv
punctuation
android-webservice
popen
1010
oracle-fusion-apps
visual-studio-monaco
eclemma
frame-grab
enunciate
godeps
lowercase
chicagoboss
featuretoggle
mobilefirst-server
ampersand
wicked-gem
webproject
kotlin-android-extensions
deque
multivariate-testing
ecos
xcode6.3.1
android-2.3-gingerbread
csslint
sql-function
xulrunner
spring-security-acl
san
non-ascii-characters
bcdedit
statechart
aero
semicolon
significant-digits
handshake
email-verification
linkbutton
struts2-json-plugin
live-wallpaper
system-information
cakeyframeanimation
affinetransform
background-repeat
asio
motodev-studio
server-variables
office-automation
digiflow
git-log
ninject-interception
database-cloning
twitter-feed
rendering-engine
bindable-linq

Resources

Encrypt Message