In one of our products we use Aspose.Words to generate quite big reports with potentially a lot of headers.
While testing we created a report with 15.000+ headers and a table of contents, which caused the process to spike to 100% CPU indefinately and to fill up the servers memory.
After researching the problem we came to the conclusion that the problem was with the "UpdateFields" call.
We created a test web application which loads the document and calls the "UpdateFields" function, and in this case the call finished in 2 seconds. After some more tries we found out that the problem only occurs when we set the Aspose.Words License file...
This is the test application code:
Dim objLicense As New Aspose.Words.License()
Dim objDocument As New Aspose.Words.Document("C:\infoland\Sjoerd.docx")
As you can understand, this is a serious problem for our customers, because when this happens, the entire server becomes unresponsive because our process is claiming all resources. Can you confirm this issue and provide us with a fix?
Sjoerd van Loon