Hi,
I am extracting messages in a PST using the C# Parallel.For() method and have found that unless I put a lock around the call to ExtractMessage, as shown below, I get lots of exceptions.
:
MapiMessage mapiMessage;
lock (extractMessageLock)
{
mapiMessage = pst.ExtractMessage(messageInfo);
}
:
So it seems this call is not thread safe. This is OK since I have the above workaround, but I was wondering if you would consider making it thread safe because at the moment I am observing lots of contention/waiting on this lock which is limiting the throughput of the parallel code.
Thanks
Phil
PS - I am using Aspose.Email 1.9.