• 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: MacSoftware update causes my application to hang
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MacSoftware update causes my application to hang


  • Subject: Re: MacSoftware update causes my application to hang
  • From: j o a r <email@hidden>
  • Date: Sat, 9 Dec 2006 13:34:01 +0100


On 9 dec 2006, at 13.19, Balaram Barange wrote:

My application is sync application which sync a
calendar server with ical using the sync services.
What I have analyzed that my application hangs when it
reads data from http stream (with the server)and the
software update is running.

Two things:

1) You should use threads / asynchronous API:s when performing network I/O in a GUI application. NSURLConnection / NSURLDownload are good candidates for this. My suggestion would be that you spend your time on investigating switching to a better API for your downloading needs. I haven't used Synch Services, so I don't know what type of restrictions it imposes on your design though.

2) I seriously doubt that Software Update could cause a HTTP download in your application to hang and never return. If you have a very slow connection, perhaps it could timeout? If you're not using an API that provides you with proper control and error handling, that's perhaps something that might be difficult to detect.

As always, if you think you've found a bug, reproduce it in a small sample project, and submit it with a bug report to Apple.

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: MacSoftware update causes my application to hang
      • From: Balaram Barange <email@hidden>
References: 
 >Re: MacSoftware update causes my application to hang (From: Balaram Barange <email@hidden>)

  • Prev by Date: Re: MacSoftware update causes my application to hang
  • Next by Date: Re: Launch with bundle fails the first time
  • Previous by thread: Re: MacSoftware update causes my application to hang
  • Next by thread: Re: MacSoftware update causes my application to hang
  • Index(es):
    • Date
    • Thread