Mapi.Message can't be disposed causing OOM error

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();

Hello @cschang,

Thank you for reporting your case.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILCPP-390