I downloaded some AppleSample code, which contained an "ExceptionReporting" project, the purpose of which is to show how to throw and display to the user NSExceptions.
If you click the button to throw a made-up exception, then a familiar looking dialog pops up showing a backtrace, saying "something really bad happened", and it gives you the option to continue in a funky state or to crash immediately.
If you choose to crash, then the following function is called:
Talk about "undocumented" ?!! I'm just curious what the heck that line is doing, or how it's doing it... I mean, how does that line equate to CrashMeNow(). Thx.
If you click the button to throw a made-up exception, then a familiar looking dialog pops up showing a backtrace, saying "something really bad happened", and it gives you the option to continue in a funky state or to crash immediately.
If you choose to crash, then the following function is called:
Code:
static void CrashMyApplication() {
*(char *)0x08 = 1;
}
Talk about "undocumented" ?!! I'm just curious what the heck that line is doing, or how it's doing it... I mean, how does that line equate to CrashMeNow(). Thx.