NSURLConnection crash
NSURLConnection crash
- Subject: NSURLConnection crash
- From: Jesus De Meyer <email@hidden>
- Date: Sun, 11 Feb 2007 10:43:44 +0100
Now that I finally had the rss feed for del.icio.us working another
problem arises. When I try to get the RSS feed from Slashdot (http://
slashdot.org/index.rss), my app crashes:
#0 0x90a564c7 in objc_msgSend
#1 0x00395c00 in ??
#2 0x9265a619 in -[NSHTTPURLProtocol
retryWithRedirectedURLAndResultCode:]
#3 0x9265a36d in -[NSConnectionHTTPURLProtocol
attemptRetryAfter3xxResponse]
#4 0x9274805b in -[NSConnectionHTTPURLProtocol performHTTPHeaderRead]
#5 0x92659935 in readStreamCallback2
#6 0x90878b76 in _CFStreamSignalEventSynch
#7 0x9082afd2 in CFRunLoopRunSpecific
#8 0x9082ab0e in CFRunLoopRunInMode
#9 0x9262da9b in +[NSURLConnection(NSURLConnectionInternal)
_resourceLoadLoop:]
#10 0x925f836c in forkThreadForFunction
#11 0x90023d87 in _pthread_body
Here's the code I'm using
- (void)parse {
NSURL *fURL = [self valueForKey:@"feedURL"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:fURL
cachePolicy:NSURLRequestReloadIgnoringCacheData
timeoutInterval:60.0];
[request addValue:[NSString stringWithFormat:@"MyApp/2.0"]
[request setHTTPShouldHandleCookies:NO];
[data setLength:0];
NSURLConnection *connection = [NSURLConnection
connectionWithRequest:request delegate:self];
if (connection == nil) {
NSLog(@"Unavailable to make a connection!");
}
}
__________________
Jesus De Meyer
www.edot-studios.com
jesus.edot-studios.com
"creativity in mind"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden