• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSURLConnection crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSURLConnection crash
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Binding a Popup to an Array of Images?
  • Next by Date: NSOpenPanel in Cocoa app won't receive drag n drop
  • Previous by thread: Re: pasteboard issues
  • Next by thread: Re: NSURLConnection crash
  • Index(es):
    • Date
    • Thread