Throws OutOfMemoryException not able to load eml in MailMessage

Hello Team,

I've been using Aspose.Email .NET SDK to create PST file and add mails in it.

Currently i've been using version 6.4, and facing one problem.

An .eml file size of around 20MB has no attachments only body is large no able to load in on 32-bit Operating system.

Its throws OutofMemory exception, i've checked the memory there was 2.7GB free in RAM when i've ran this code and still it gives outofmemory exception.

And i can't share this eml sample as its very confidentails and i don't have any more sample like these.

I am using this following code to load the eml, please correct me if i am wrong :

public static void main(string []args)
{

string f_tmpEmlPath = "C:\\test.eml";
try
{
MailMessage f_Objmailmessage = MailMessage.Load(f_tmpEmlPath, MailMessageLoadOptions.DefaultEml);
}
catch (OutOfMemoryException ex)
{
throws as exception as

Exception of type 'System.OutOfMemoryException' was thrown.
ERROR2016-08-22 04:07:52 - Stack Strace :: at System.Text.Encoding.GetBytes(Char[] chars, Int32 index, Int32 count)
at System.Text.Encoding.GetBytes(String s)
at Aspose.Email.Outlook.MapiPropertyContainer.#=qiP8OpVok2Q7yuit4Iql4hQ==(MapiPropertyCollection #=q7tAf2Qg_ByV3VrGYDRdQmg==, MapiPropertyStream #=qKLLIDwV3v9yl$Csn_oi$Hw==, Int64 #=qN0a2mM5vuNjxPpamY0U4HQ==, String #=q$nvh5jHGFAp1MUzDoH899Q==, Encoding #=qECIdJk_0drAdidMLlrUmkQ==)
at Aspose.Email.Outlook.MapiMessageItemBase.SetProperty(MapiProperty property)
at Aspose.Email.Outlook.MapiMessage.#=qvil_uRAUwSdfmBZEj0Gv0oRysKx$j_271qI0ALWnzdM=(MailMessage #=qtR5AAt_wBk_lHohaLyuS6Q==, MapiConversionOptions #=qD6Wz5UxQck1anBGMn0IJdg==)
at Aspose.Email.Outlook.MapiMessage.#=qo0jXFM82MRjhH3TKoDpLR6ErZ5wvdhU4TSrbAG7Mg50=(MailMessage #=qzqrTnll4dhrN6eS4wIaf9Q==, MapiMessage #=qyQlAlTgVCfwTjDz69zAhFw==, MapiConversionOptions #=qD6Wz5UxQck1anBGMn0IJdg==)
at Aspose.Email.Outlook.MapiMessage.#=qsfyNjeEtuX4HrDz7nV40EQ==(MailMessage #=qtR5AAt_wBk_lHohaLyuS6Q==, MapiConversionOptions #=qD6Wz5UxQck1anBGMn0IJdg==)
at Aspose.Email.Outlook.MapiMessage.FromMailMessage(MailMessage message, MapiConversionOptions options)

}
}

Its happening only on 32-bit machine, on 64-bit machine is working fine and able to load and save.

Really appreciate your help, and you are provide best service.

Looking forward to hear you.

Thank You.

Regards,
Shital

Hi Shital,


Thank you for writing to Aspose Support team.

This issue of Out Of Memory Exception on x86 systems is already known to us and logged as EMAILNET-38439 in our issue tracking system. It’s fix will be available in the upcoming release of the API i.e. Aspose.Email for .NET 6.9.0. We’ll update you here once the fix version is available for download.

Hello Kashif,


When will upcoming version will be released do we have any particular date ?

Thank You.

Regards,
Shital

Hi Shital,


The new version of API is expected to be available in the first week of September 2016. We’ll notify you here once there is some information available in this regard.

The issues you have found earlier (filed as EMAILNET-38439) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(1)

Hi,


Please check your issue with this latest version of the API and if the issue still persists, please share your sample file with us that we can further use to investigate the issue. We’ll assist you accordingly in this regard.