Load Message does not release file


#1

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.


#2

Hi,, tompos,

Thanks for your post.

Our dev team is checking the problem. We will get back to you as soon as possible.

Thanks


#3

Dear tompos,

Could you please try to use the attached document? We do some hotfix for the problem.

Let me know if it works.

Thanks


#4

That worked. Thank you for the quick response.