FileSystemWatcher.WaitForChanged returns, but there is still a lock on the file
- by SnOrfus
I have a program that send a document to a pdf printer driver and that driver prints to a particular directory. After the print I want to attach the pdf to an e-mail (MailMessage) and send it off.
Right now, I send the document to the printer (wich spawns a new process) and then call a…