• 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
Custom NSURLProtocol crashes when using Garbage Collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Custom NSURLProtocol crashes when using Garbage Collection
      • From: Greg Parker <email@hidden>
  • Prev by Date: Re: unsleep the display programatically?
  • Next by Date: Binding Enabled property to NSArrayController selection
  • Previous by thread: Re: Getting a view's size?
  • Next by thread: Re: Custom NSURLProtocol crashes when using Garbage Collection
  • Index(es):
    • Date
    • Thread