Re: NSURLConnection crash
Re: NSURLConnection crash
- Subject: Re: NSURLConnection crash
- From: Sijmen Mulder <email@hidden>
- Date: Thu, 24 Jul 2008 22:15:52 +0200
Thanks! That's solved it. Submitted as #6100263, just in case.
Op 24 jul 2008, om 20:10 heeft Jeff Johnson het volgende geschreven:
Sijmen,
It seems to be the call to [connection start] that's causing the
crash. The call to [[NSURLConnection alloc] initWithRequest:request
delegate:self] already starts it loading, so there's no need to call
start.
I don't think it should crash -- that may be an Apple bug -- but it
looks like you can stop the crashing by getting rid of the call to
start.
-Jeff
On Jul 24, 2008, at 12:23 PM, Sijmen Mulder wrote:
I'm experiencing strange crashes with NSURLConnection
(EXC_BAD_ACCESS). As far as I know, I'm doing nothing strange. I
set up the request, pass it to a connection, and let it start.
Then, after a second or two, the crash comes.
Note that I'm using garbage collection.
I've narrowed it down to a very small test case, which can be found
here:
http://paste.lisp.org/display/64154 <- just the code
http://a404.net/files/ConnectionCrashSample.zip <- zipped project
This is the backtrace of the crash:
#0 0x933af4a6 in mach_msg_trap ()
#1 0x933b6c9c in mach_msg ()
#2 0x93ed50ce in CFRunLoopRunSpecific ()
#3 0x93ed5cf8 in CFRunLoopRunInMode ()
#4 0x92d30da4 in RunCurrentEventLoopInMode ()
#5 0x92d30bbd in ReceiveNextEventCommon ()
#6 0x92d30a31 in BlockUntilNextEventMatchingListInMode ()
#7 0x96ab6505 in _DPSNextEvent ()
#8 0x96ab5db8 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#9 0x96aaedf3 in -[NSApplication run] ()
#10 0x96a7c030 in NSApplicationMain ()
#11 0x00001b80 in main (argc=1, argv=0xbffff62c) at /Users/sjmulder/
Desktop/ConnectionCrashSample/main.m:13
I have no idea what's left for me to do. Any help would be greatly
appreciated.
–Sijmen_______________________________________________
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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