Re: Force an Application to crash : possible ?
Re: Force an Application to crash : possible ?
- Subject: Re: Force an Application to crash : possible ?
- From: John Stiles <email@hidden>
- Date: Wed, 11 Jan 2006 13:57:50 -0800
For debugging purposes, I've found the following to be pretty good:
asm { trap }
I guess in Intel land you'd need
asm { int 3 } // or something similar, this part is untested.
This throws a "breakpoint" exception. If you're debugging, the
debugger pops up. Otherwise, the app dies with a crash log (and it
will be clear how it died, since the name of your breakpoint function
is at the top of the call stack, and the exception type is
EXC_BREAKPOINT or something along those lines).
On Jan 11, 2006, at 1:17 PM, Eric Morand wrote:
Is there a way, a "clean" way, to force an application to crash
programmatically ?
By "clean", I mean using a method/function whose job is actually to
crash the application.
Thanks,
Eric.
=============================================
Automator Ketchup : http://automatorketchup.blogspot.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
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