Re: test if another app has hung
Re: test if another app has hung
- Subject: Re: test if another app has hung
- From: John Stiles <email@hidden>
- Date: Tue, 01 Apr 2008 15:58:31 -0700
I have a vague recollection that the mechanism used by Activity Monitor
and friends is not public API, unfortunately.
Martin Redington wrote:
I went to check the referenced thread, as this is something I wanted
to do occasionally, when I noticed that I was the OP for it.
The discussion was exhaustive, and veered OT at the end, but I'm not
sure that I ever discerned how one would do this efficiently.
This was probably the most informative quote (from Eric Buck), but its
still not clear to me how you check from outside the Window Server.
"I believe the Mac OS X window server periodically
sends events to the event queue of all applications
that have a connection to the window server. If an
application does not remove the event from its queue,
the window server changes the cursor to the beach ball
automatically. The only thing the beach ball means is
that an application is not taking events out of its
queue fast enough."
There were some AppleScript based approaches, but they all seemed to
involve activating the app ...
Spin Control/Activity Monitor/Force Quit seem to have some access to
hang data, but I haven't tried looking to see how they do it.
On 1 Apr 2008, at 11:49, Ron Fleckner wrote:
On 01/04/2008, at 9:28 PM, Ben Dougall wrote:
Hello,
What's the best way to test if another app has likely hung or not?
Programmatically of course. I want to be able to kill an often
hanging app and restart it -- when it's hung that is. (10.3.9+)
Thanks, Ben.
Hi Ben,
This question was exhaustively examined in a thread a few weeks ago.
Start here:
<http://www.cocoabuilder.com/archive/message/cocoa/2007/10/20/191068>
HTH,
Ron
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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