Aspose.Words Save Method No Longer Thread Safe

In the latest version of Aspose.Words (14.12.0), the Save method is no longer thread safe.


In each thread, I create a unique Document instance. I load the document from disk, then I attempt to save it as a PDF file. Even though each instance of the document is unique, I get “Object is currently in use elsewhere” exception.

In order to prevent this exception, I am forced to put a lock around the Save instance method. This is obviously not ideal and can slow things down quite a bit.

Version 14.8.0 does NOT have this problem.

I have written a test console application to demonstrate the issue - Attached.

This is a breaking change for us and prevents us from moving away from 14.8.0 for the other fixes that we need.

Thank you,

Scott

Hi Scott,

Thanks for your inquiry. I have tested the
scenario and have managed to reproduce the same issue at my side. For
the sake of correction, I have logged this problem in our issue tracking
system as WORDSNET-11374. I have linked this forum thread to the same
issue and you will be notified via this forum thread once this issue is
resolved.

We apologize for your inconvenience.

We are seeing the same behavior in other modules (Aspose.Cells, Aspose.Imaging, etc.). We would like to know if the Save() method is using common code? If so, that would explain the issues we are seeing and will use locks until your fix is available. If not, then it looks like I have a lot of sample applications to build so you can get more bugs entered.


Please let me know…

Thanks,

Scott

Hi Scott,

Thanks for your inquiry. Could you please share the input documents along with code example for Aspose.Cells and Aspose.Imaging here for testing? We will investigate the issues and provide you more information about your query.

Regarding WORDSNET-11374, I like to share with you that this issue has been resolved and its fix will be available in
Aspose.Words v15.2.0. This release will be available by
the end of February 2015. We will inform you
via this forum thread as soon as the this release is published.

Thanks for your patience.

The issues you have found earlier (filed as WORDSNET-11374) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.