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
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
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
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
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
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
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