[REPRO STEPS]
1. Create a project.
2. Set the record path so that the media is written to an external serial device aka USB drive.
3. Begin recording a track.
4. Once the track is recording, unplug the USB cable (to replicate what occurs if the connection drops on it's own for various reasons).
Expected behavior: Reaper throws an error or otherwise informs the user that the media has failed etc.
Actual behavior: Reaper continues "recording" as if nothing is wrong though the file is no longer accessible. Reaper could record for hours with the user assuming everything is OK.
[DETAILS]
See this post/thread...
https://forum.cockos.com/showpost.ph...1&postcount=33
It appears that while recording is in progress, if the serial drive/device inadvertently blips or disappears after record is pressed, Reaper either doesn't see or ignores the fact that the storage media no longer exists and continues to report to the user that everything is just fine and that the recording is still occurring - but it isn't...
It appears there are a couple of possibilities...
1. Being External the OS (Win) uses IRP_MJ_WRITE, when the drive is no longer present, the return value switches to FILE INVALID and Reaper isn't actually informed that the write failed, possibly due to caching/lazy writes.
2. The same as above but Reaper is informed and it is a missed case.
In all cases, IF Reaper can detect this, it probably should because someone theoretically can (and actually has per other thread), record for hours thinking everything is fine when in reality no data is being written to disk. It's also possible it went somewhere else (memory/page et al), but too much work to investigate further when the devs likely already know the answer.
Can the devs look into this and comment? We are a little concerned with risk of users losing hours of recording since Reaper doesn't give any clues that something went wrong. Even if recording external USB media is a bad idea, would be nice to know if Reaper can detect this.
Confirmed on Windows and Mac (and linux based on clepsydrae's reply below).