When using multiple threads to convert PDFs to other formats (have tested this with Word and HTML), I sporadically get a null reference error:
Error processing C:\Users\steven\Desktop\Demo Results\Processed\Alfreds Futterkiste.pdf: System.NullReferenceException: Object reference not set to an instance of an object.
at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at #=z7B66NTNGFA169JLoUmrwKxgD8jaW.#=zrehnqg4=() at #=zjQofK5uQT1nrczm2hqUfn5rTB69qRYYos7w$enU=.#=zc07YwmE=(IList1 #=zXQV4p3t6b6Zw, #=zUXsHvDp_PywOqaOUR5YzYceSxILpMOyVPA== #=zdBORxco=, #=zhEH9Bc_Wang_9YLQVBUdfsZatAgmzuy2AOpUOpg= #=zds9OORg=)
at #=zSkKpsnW4_l8d3oWw$rCKZvnjq_0o.#=zc07YwmE=(String #=zJaRRVAGKJ0$y, #=zhOwO0qGv1_zr7ukGF8zdWlJryxnLBgmyZw== #=zds9OORg=, IList`1 #=zXQV4p3t6b6Zw, #=zElZS3rTNPGRb2G8bbB096HjlemU26jn78oFyxoU= #=z1Un$IH4=, #=zoJ0W652CgKjIWtgorYMNb57mwf5e #=zDppDFBU8JVcJ)
at #=zMYqbptfeeqhc6FkgO9qM6Ug=.#=zB9de9gE=(Document #=zgdQy3nA=, String #=zx6UtPYJ33E_xuAIJOw==, Stream #=z2fSaFZn_yKhE, HtmlSaveOptions #=zds9OORg=)
at Aspose.Pdf.Document.#=zEszYJEKR61hZ(String #=zJaRRVAGKJ0$y, SaveOptions #=zds9OORg=)
at Aspose.Pdf.Document.Save(String outputFileName, SaveOptions options)
at All_About_PDF.PDFConverter.convertPDFToHTML(String file, String outputFolder, String password, Boolean zipResult) in PDFConverter.cs:line 257
at All_About_PDF.PDFConverter.<>c__DisplayClass3_0.b__0(String file) in PDFConverter.cs:line 99
This occurs when I put the conversion in Parallel.ForEach with 4 threads.
I have observed your issue and like to inform that I have created investigation ticket with ID PDFNET-48334 in our issue tracking system to investigate and resolve this issue as soon possible.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.