Error: the process cannot access the file when sending email
Status: Inactive
Brought to you by:
niri8587
When selecting the option "Send to kindle", an error dialog is displayed saying:
"Error: The process cannot access the file 'C:\users\xxx\AppData\Local\Temp\greader2kindle\Google reader feed on yyy-mm-dd.mobi' because it's being used by another process"
Yet, the ebook is proerly generated and received on the kindle. However, the entries are not marked as read.
Fixed in greader2kindle 0.3.2.
Was caused by a .Net framework bug where the System.Net.Mail.Attachment class would keep a lock on the attached ebook even after being destroyed.
Fixed by calling Attachment.Dispose() after sending email.
Fixed. The .Net SMTP client was not automatically releasing files after email was sent, and was hence blocking the temporary file deletion.