• 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
Re: URL loading system not threadsafe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URL loading system not threadsafe?


  • Subject: Re: URL loading system not threadsafe?
  • From: Henk Kampman <email@hidden>
  • Date: Fri, 18 Nov 2005 23:04:37 +0100
  • Resent-date: Fri, 18 Nov 2005 23:05:41 +0100
  • Resent-from: Henk Kampman <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: email@hidden


On 18-nov-2005, at 20:09, Daniel Waylonis wrote:

Hi Henk,

That sure sounds like bug (or at least Apple should document that the class is not thread safe). I think that you're right that the cache is the problem.

I'm fairly sure that this is a bug introduced with the 10.4.3 update

I tried a clean install of 10.4 and 10.4.2 and the app runs without any problems on both systems.

The crashes reappeared after updating to 10.4.3


As Fraser suggested, you could use NSURLConnection. If you're trying to have multiple requests, you could use the asynchronous aspect of the class, but still have data arrive on your main run loop. Make sure that your delegate responds to the connection:willCacheResponse: by returning nil.



I tried NSURLConnection but without any improvement, the app still crashes after running for a few minutes.


You might also give NSURLDownload a shot. It doesn't cache at all.

I'll give it a try

Henk

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: URL loading system not threadsafe?
      • From: Colin Barrett <email@hidden>
  • Prev by Date: Re: Incompatible types in Currency Converter tutorial
  • Next by Date: "Proper" way to deal with "new" and "deprecated" methods when targeting more then one version
  • Previous by thread: Re: URL loading system not threadsafe?
  • Next by thread: Re: URL loading system not threadsafe?
  • Index(es):
    • Date
    • Thread