• 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: Fritz Anderson <email@hidden>
  • Date: Fri, 8 Dec 2006 14:10:58 -0600


On Dec 8, 2006, at 1:42 PM, Balaram Barange wrote:

I have a problem with my application, mac software update causes my application to hang. it basically suspends my app. and when the update ends my app goes into a non responsive state.

  Can some one tell me reason for this.

I wanted to put a check in my app that if the software update is running then stop my app for sometime then again check whether software update is running..

I believe this is not a constructive approach. Every Macintosh application that I am aware of will run concurrently with Software Update. This suggests a bug in your application, which you should fix, and not a problem with SU that you must work around.


You can learn much about the state of a hung application from common development tools.

- The debugger in Xcode 2.4 allows you to attach to a running process.
- Better still, run a debug version of the application, trigger the bug, and if necessary pause the application.


- Use the Sampler application (/Developer/Applications/Performance Tools/Sampler) during the hang to produce a statistical stack dump.
- Use the sampling facility in /Applications/Utilities/Activity Monitor (click your application, then the Inspect button, and the Sample button in the inspector window) to do the same thing.
- Use the "sample" command-line tool to do the same thing. You must supply process name/number, how many seconds to run, and the interval, in milliseconds, between taking samples. I find "sample MyApp 10 10" to be good almost always.


With these, an examination of the resulting stack dump may tell you where your application has gone off the rails.

- Use Shark to get even more detailed information about the application before, during, and after the hang. You can use the call- stack history for clues about what you application was doing around that time.

- Use the /Applications/Utilities/Console application to examine the system and console logs to see if any messages about your application were written.

Sean McBride also recommends Thread Viewer.

	— F


_______________________________________________

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


References: 
 >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: Mapping OBJC problem...
  • 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