2020-10-21, 06:21 PM
I get an error when deleting a recording: unable to delete - file may be use.
If I restart my Win 10 PC, then I can delete as normal. Here is the pertinent (I think) portion of the log file:
2020-10-21 13:51:52.644 [DEBUG][42] DeleteRecording(5944)
2020-10-21 13:51:52.644 [DEBUG][42] DeleteRecording@1
2020-10-21 13:51:52.644 [DEBUG][42] Cancelling wake up request for for 'RecordingOID5944'
2020-10-21 13:51:52.644 [DEBUG][42] Cancelling wake up request for for 'RecordingOID5944-backup'
2020-10-21 13:51:52.644 [DEBUG][42] -removing: E:\My Recordings\Days of our Lives\Days.of.our.Lives.S56E20.ts
2020-10-21 13:51:52.660 [ERROR][42] Unexpected error in DeleteRecording(): System.IO.IOException: The process cannot access the file 'E:\My Recordings\Days of our Lives\Days.of.our.Lives.S56E20.ts' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
at NShared.RecordingService.DeleteFile(String filename)
at NShared.RecordingService.DeleteRecording(ScheduledRecording scheduledRecording)
If I restart my Win 10 PC, then I can delete as normal. Here is the pertinent (I think) portion of the log file:
2020-10-21 13:51:52.644 [DEBUG][42] DeleteRecording(5944)
2020-10-21 13:51:52.644 [DEBUG][42] DeleteRecording@1
2020-10-21 13:51:52.644 [DEBUG][42] Cancelling wake up request for for 'RecordingOID5944'
2020-10-21 13:51:52.644 [DEBUG][42] Cancelling wake up request for for 'RecordingOID5944-backup'
2020-10-21 13:51:52.644 [DEBUG][42] -removing: E:\My Recordings\Days of our Lives\Days.of.our.Lives.S56E20.ts
2020-10-21 13:51:52.660 [ERROR][42] Unexpected error in DeleteRecording(): System.IO.IOException: The process cannot access the file 'E:\My Recordings\Days of our Lives\Days.of.our.Lives.S56E20.ts' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
at NShared.RecordingService.DeleteFile(String filename)
at NShared.RecordingService.DeleteRecording(ScheduledRecording scheduledRecording)