Free Support Forum - aspose.com

Thread while converting to html

Hi,

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,

Hi

Thanks for your request. I think that you find the following thread useful.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1044119&SiteID=1

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

I hope this helps.

Best regards.