If I load a message and then exit the sub it will not release the file.
If I run the following sub in vb.net it will not allow me to copy or move the file. I get the error: The process cannot access the file because it is being used by another process.
sub testcount()
message = MailMessage.Load("c:\test.msg", MessageFormat.Msg)
debug.print message.Attachments.Count
exit sub
Do I need to unload the message or close the file. I have tried to dispose the message but it doesn't work.
Please help.
Thank you.