Processing documents in parallel using appdomains
Posted: Thu Feb 28, 2019 11:47 am
Hey there,
I am currently trying to process ipxc_documents in parallel even though my main thread is STA. As a workaround I create a seperate appdomain for every document instance. These are created, when my wrapper class for the document is instantiated, which happens in parallel tasks. Now here is the issue:
When the document classes in the appdomains try to load a doc from file, i get this error:
Error [Pdf Structure Library]: Unknown/unsupport security handler.
When i put a lock statement around the creation of the appdomain and my call on CreateInstanceAndUnwrap(), I do not get exceptions anymore. Could this issue be related to simultaneous calls of OpenDocumentFrom()?
I would really appreciate your input on this issue,
thanks,
Kutusow
I am currently trying to process ipxc_documents in parallel even though my main thread is STA. As a workaround I create a seperate appdomain for every document instance. These are created, when my wrapper class for the document is instantiated, which happens in parallel tasks. Now here is the issue:
When the document classes in the appdomains try to load a doc from file, i get this error:
Error [Pdf Structure Library]: Unknown/unsupport security handler.
When i put a lock statement around the creation of the appdomain and my call on CreateInstanceAndUnwrap(), I do not get exceptions anymore. Could this issue be related to simultaneous calls of OpenDocumentFrom()?
I would really appreciate your input on this issue,
thanks,
Kutusow