• 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: Force an Application to crash : possible ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Force an Application to crash : possible ?
      • From: Scott Ribe <email@hidden>
References: 
 >Force an Application to crash : possible ? (From: Eric Morand <email@hidden>)

  • Prev by Date: Re: Getting WebView and JavaScript to communicate. MFC can do it.
  • Next by Date: Re: Getting WebView and JavaScript to communicate. MFC can do it.
  • Previous by thread: Re: Force an Application to crash : possible ?
  • Next by thread: Re: Force an Application to crash : possible ?
  • Index(es):
    • Date
    • Thread