Hi,
I have a problem with two simple lines of code:
string sMailEmlFile = @"C:\Test\a.eml";
string sMailMsgFile = @"C:\Test\a.msg";
MapiMessage msg = MapiMessage.FromMailMessage(sMailEmlFile);
msg.Save(sMailMsgFile);
They works in develop environment, but when I click the exe file , the istruction
MapiMessage.FromMailMessage(sMailEmlFile);
generate an error: "Attempted to read or write protected memory "
It appens on windows 7 and 2008 , 64 bit.
On a pc win 2003, 32 bit , it works fine!
I send the sample project
Thanks!!