3 ms·
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 err
by malkia 2y ago
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...