Baruch Even <[EMAIL PROTECTED]> writes:
| Some time ago I've seen a library of sorts that is intended to help
| protect against program crashes. Specifically it is intended to allow to
| recover from a crash gracefully.
|
| The method proposed there was to allocate critical data structures from
| an mmap-ed file, when the program crashes the os handles the saving of
| the memory to file (assuming no disk space error, but possibly the disk
| space is already allocated).
|
| The link is at: http://afro.buzzcutgames.com/~idcmp/recovalloc/
|
| This might help improve LyX crash recovery.
I think it is pretty good as it is...
and if we are _ever_ going to use this it has to be wrapped up in C++
new/delete.
It also seems to me that this approach works best when the in mem
structures is equal to the ones on disk. In our case that is far from
true. Of course with XTL we could dump the whole buffer structures to
file (or this special mem), but I do not see how this is really going
to help us. We would need a _lot_ of internal changes to take benefit
of this.
--
Lgb