testing for image restart
Avi Bryant
avi at beta4.com
Sat Jan 4 00:45:35 UTC 2003
On Sat, 4 Jan 2003, Andreas Raab wrote:
> I don't think this is what Derek meant. I would presume that he's rather
> interested in finding out if the image crashed the last time it was run.
> I've actually been interested myself in this but as of now there's no
> way to distinguish between a "quit" and a crash. It is also hard to
> figure out (for example) if you crashed after a "save".
The only way I came up with to do that is to write out a small file on
startup, and delete it on shutdown. If the file exists when you start
back up again, you must have crashed.
More information about the Squeak-dev
mailing list
|