We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Thread while converting to html


I have 1000 word documents, and I am converting all in HTML at runtime by using for loop.

Now sometime the following thread comes at runtime( I have also attached image of that error)

“The CLR has been unable to transition from COM context 0x227348 to COM context 0x2274b8 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.”

Can you please help me to find out why this thread comes? As you can see in image it comes on line at which I am Initialize Document object with path.



Thanks for your request. Maybe there are too many documents that should be processed or one of documents can’t be loaded.

I hope this helps.

Best regards.