Killing it from the terminal is probably preferred, as it does not require you alter the code.

Le 9 mars 09 à 23:17, Rick Mann a écrit :

Yeah, something like that. I didn't know if there was a more preferred way.

Thanks!

On Mar 9, 2009, at 15:15:18, davel...@mac.com wrote:


On Mar 9, 2009, at 6:05 PM, Rick Mann wrote:

I want to test how well our background agent is restarted. I'd like to programmatically induce a crash. What's a good way to do so?

TIA,
--
Rick


I'm not certain if you mean crashing use a Cocoa method, but this should certainly cause a memory fault crash.

int *x;
x = 0;
*x = 5;

Dave


--
Rick

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org

This email sent to devli...@shadowlab.org


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to