runtime hook for Crash on Error

Denis Shelomovskij verylonglogin.reg at gmail.com
Sat Jun 2 00:01:36 PDT 2012


01.06.2012 21:43, Walter Bright написал:
> On 6/1/2012 1:48 AM, Dmitry Olshansky wrote:
>> Or better - save game and then crash gracefully.
>
> That can result in saving a corrupted game state, which then will not
> load, or worse, load and then cause another crash.
>
> I would suggest instead implementing an auto-save feature which
> automatically saves the game state at regular intervals.

Even in my old D1 3D editor I implemented auto-saving because it was 
hard to recover from internal errors and I decided to log-and-crash. And 
it still works perfectly, user can loose at most a minute of work!

I'd like every program to do the same thing. More that that, my 
favourite game (Windows XP SP3) sometimes fails to start (you know, 
"system32\config\<reg file> is corrupted" error) and I have to launch my 
restore script and almost every time the last restore point is broken 
(and its creation time is often a few hours before last shut down)!

So trying to save after and program logic error is definitely a mistake.

-- 
Денис В. Шеломовский
Denis V. Shelomovskij


More information about the Digitalmars-d mailing list