←back to thread

173 points daviducolo | 1 comments | | HN request time: 0.209s | source
1. malkia ◴[] No.43339153[source]
How do you handle disk errors and file mapping?

To give more context, if there is a disk error (logical, physical, etc.), an "fread" would simply return an error, it won't interfere with the rest.

But with memory mapped files, you have to deal this in someway. For example on Windows, through SEH (__try / __except) around blocks reading (or writing) to memory mapped files.

Just wondering...