Custom NSURLProtocol crashes when using Garbage Collection
Custom NSURLProtocol crashes when using Garbage Collection
- Subject: Custom NSURLProtocol crashes when using Garbage Collection
- From: Keith Duncan <email@hidden>
- Date: Mon, 19 Oct 2009 10:16:02 +0100
I wrote a simple NSURLProtocol subclass and started observing crashes
in URL Loading code. I've extracted the crasher into a simple test
project which loads an image from a URL with custom scheme which I
handle every hundredth of a second.
When compiled with -fobjc-gc it reliably crashes; without it runs
indefinitely however, there are leaked NSString instances allocated by
NSURLConnection in +sendSynchronousRequest:… I've filed this as rdar://problem/7314551
for reference.
The test project can be found http://33software.com/files/CrashLoadingURL.zip
The bug is reproductable in the SpecialPictureProtocol sample code
if compiled for garbage collection too.
Can anyone else verify this or point to a workaround?
Thanks,
Keith_______________________________________________
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