My project is built on .NET Standard 2.0.
I have a concern regarding the generation of multiple text files or the retrieval of metadata properties in a parallel loop. Occasionally, some files encounter exceptions during this process. However, when I process the same files sequentially (using a single thread), they are handled successfully.
While this issue does not occur consistently, it raises concerns about the reliability of the parallel execution.
Could you please clarify whether Aspose.PDF supports multithreading?
@hemalp
Can you please provide more details about the specific exceptions you are encountering when processing files in parallel?
Exception: index was out of bound
@hemalp
Aspose.PDF is multithreading safe API as long as one file is accessed by a single thread at a time. In other words, multithreading should be implemented in such a way that one thread should access only one file at the time. If somehow a file is accessed by more than one thread simultaneously, unexpected behavior can be seen. In case you have implemented it right way and still facing issue, we request that you please share your sample code snippet and the sample file with us. We will test the scenario in our environment and address it accordingly.
PS: Please try with the latest version of the API before sharing the requested information.