|Subject:||Sharing Violation on attached file even after disconnect|
|Posted by:||Chris Mathews (Chri…@macrovoice.com)|
|Date:||Thu, 16 Oct 2003|
After sending an email with attachment using TIdSMTP and TIdMessage, I
cannot access the file on the hard drive that was the attachment (Sharing
Violation). This is even after IdSMTP.Disconnect. I have also tried
DisconnectSocket and even Destroy, but still no luck. I can only access the
file after I close my application. I am trying to delete the file after
disconnect because it is a temporary file in the TEMP folder. Is there any
way to unlock the file after the Send is completed? Otherwise the TEMP
folder will grow forever.
Thank you for any help that anyone can offer.