I'm using Aspose.Email 1.1, and am seeing some serious memory issues that are causing my application to fail.
Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage() and Aspose.Email.Outlook.MapiMessage.Save() are both throwing System.OutOfMemoryException. Examples are below.
These memory problems are occurring on a machine that has 4GB RAM, under conditions where it shouldn't be running out of memory. Can anything be done to address this?
Best regards,
Rob
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at ’.‘.›‚(Byte[] , Byte[] )
at Â’.˜.Â( , )
at ’.˜.œ( , ƒ , )
at ’.˜.›(UInt16 , UInt32 , )
at ’.˜.œ( )
at ’.˜..ctor(’ , Œ , )
at ’.œ.”( , ƒ )
at ’..‚( , MapiMessage )
at ’..‚(UInt32 , MapiMessage )
at Â’..ReadMessage(UInt32 )
at Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage(Byte[] entryId)
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at “.˜.e(Stream , Stream )
at “..ƒ(MemoryStream srcStream, Boolean isForceFat, Int32& sectorCount)
at “..ƒ(– , š )
at “..ƒ(– , š )
at “..Save(Stream )
at Aspose.Email.Outlook.MapiMessage.Save(Stream stream)
at Aspose.Email.Outlook.MapiMessage.Save(String fileName)
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at ’.‘.›‚(Byte[] , Byte[] )
at Â’.˜.Â( , )
at ’.˜.œ( , ƒ , )
at ’.˜.›(UInt16 , UInt32 , )
at ’.˜.œ( )
at ’.˜..ctor(’ , Œ , )
at ’.œ.”( , ƒ )
at ’..‚( , MapiMessage )
at ’..‚( , MapiMessage )
at ’..‚(UInt32 , MapiMessage )
at Â’..ReadMessage(UInt32 )
at Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage(Byte[] entryId)