After generating a document longer than 350 pages, with lot of pictures, with more than 300 TOC section lines, when calling 'UpdateTableOfContents' on Document variable, a 'System.OutOfMemoryException' exception is thrown.
Following the exception details:
Exception of type 'System.OutOfMemoryException' was thrown.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Text.StringBuilder.ToString()
at Spire.Doc.Documents.Paragraph.get_Text()
at Spire.Doc.Fields.TextRange.get_Text()
at Spire.Doc.Documents.Paragraph.ᜀ(sprᩘ A_0, Single& A_1)
at sprឣ.ᜀ(Table A_0, sprឤ A_1, Single A_2)
at sprឣ.ᜁ(Table A_0, Single A_1)
at sprឣ.ᜅ(Table A_0, Single A_1)
at sprឣ.ᜀ(RectangleF& A_0, Boolean A_1)
at sprឣ.ᜀ(RectangleF A_0)
at sprស.ᜋ(sprឞ A_0)
at sprស.ᜁ(RectangleF A_0)
at sprស.ᜋ(sprឞ A_0)
at sprស.ᜁ(RectangleF A_0)
at sprន.ᜀ(sprឌ A_0, sprឆ A_1, sprᩘ A_2)
at sprᩐ.ᜒ()
at sprᩐ.ᜓ()
at sprᩐ.ᜀ(Document A_0, TableOfContent A_1)
at Spire.Doc.Fields.TableOfContent.()
at Spire.Doc.Document.UpdateTableOfContents()
at PiesseQuadro.Reporting.PriceListReport.ExecuteStep(String fileName, String format) in C:\Progetti\Adeo\Reporting\PriceListReport.vb:line 222
Checked machine memory status: there is still free memory.
Spire.Doc.dll v. 7.1.10.4041.
Thank you.