Hi,
I am using Aspose.Email for C++ 23.4.0 with CentOS 7 environment for converting eml files to msg format then adding it to a pst file. But as long as the number of eml files exceeded 6000 mails, the program was killed due to OOM error. It seems the Mapi.Message.Dispose() method doesn’t release the memory resource, or is there alternative method? Thanks.
System::SharedPtr message = MailMessage::Load(String(full_file_name.c_str()), System::MakeObject());
System::SharedPtr mptr = MapiMessage::FromMailMessage(message);
inboxFolder->AddMessage(mptr);
mptr->Dispose(); // doesn’t release memory…
message->Dispose();