Re: Finding out whether app crashed

Markus Hitter <[email protected]> Thu, 7 Jul 2011 17:48:07 +0200
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
Am 06.07.2011 um 23:40 schrieb Christiaan Hofman:

> Is there a way to figure out at launch time whether my app crashed  
> at the last run?

Create a file somewhere at application start and remove it at normal  
application close. In case of an unexpected abort, the file is still  
there at the next app launch.

The classical Unix place for such stamp files is /var/run.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. (FH) Markus Hitter
http://www.jump-ing.de/