A log seems to be the easiest way. Alternatively, you could maintain the history of crashes in a database for later analysis or auditing. Or if it's just a few values and you want to hide this, you could write to the registry.