Re: NSURLConnection failing [SOLVED]

2008-03-20 Thread Antonio Nunes
On Feb 26, 2008, at 9:14 PM, Nir Soffer wrote: Turns out garbage collection was doing me in. When the NSURLConnection object was hanging out waiting for a response, it would get collected. To work around this, after creating the NSURLConnection object I just stick it in a NSMutableSet. When t

Re: NSURLConnection failing [SOLVED]

2008-02-26 Thread Nir Soffer
On Feb 25, 2008, at 18:18, Doug Penny wrote: NSURLConnection *imageConnection = [[NSURLConnection alloc] initWithRequest:request delegate:self]; if (!imageConnection) { NSLog(@"A problem was encountered while trying to download an image from %@", i

Re: NSURLConnection failing [SOLVED]

2008-02-26 Thread Hamish Allan
On Tue, Feb 26, 2008 at 5:55 PM, Jerry Krinock <[EMAIL PROTECTED]> wrote: > I'd call that a pretty serious garbage-collection bug in > NSURLConnection! Unless you'd sent it a -cancel, it ain't garbage. Unless you keep a strong reference to it, it *is* garbage. > On 2008 Feb, 25, at 8:18, Doug

Re: NSURLConnection failing [SOLVED]

2008-02-26 Thread Jerry Krinock
On 2008 Feb, 25, at 8:18, Doug Penny wrote: Turns out garbage collection was doing me in. When the NSURLConnection object was hanging out waiting for a response, it would get collected. I'd call that a pretty serious garbage-collection bug in NSURLConnection! Unless you'd sent it a -cancel

Re: NSURLConnection failing [SOLVED]

2008-02-25 Thread Doug Penny
On Thu, Feb 21, 2008 at 9:23 PM, Doug Penny <[EMAIL PROTECTED]> wrote: > I am trying to use NSURLConnection to fetch a few small images (like > 10k) from various websites. The connections are established and then > the connection:willSendRequest:redirectResponse: delegate method is > called and

Re: NSURLConnection failing

2008-02-22 Thread Doug Penny
Just an update on this... I changed the code to use NSURLDownload with moderate success. The images are downloaded much more consistently, but every 4th or 5th time it hangs after the connection:willSendRequest:redirectResponse: delegate method is called. When it crashes it dumps me into gcb and

NSURLConnection failing

2008-02-21 Thread Doug Penny
I am trying to use NSURLConnection to fetch a few small images (like 10k) from various websites. The connections are established and then the connection:willSendRequest:redirectResponse: delegate method is called and it freezes. It never times out that I know of, at least the connection:didFailWi