Fri Sep 10, 2021 8:57 am
Unfortunately it still crashes with a System.NullReferenceException: 'Object reference not set to an instance of an object.'
Running Spire version 9.8.6
After the Exception my whole function crashes with an AccessViolationException on anything else I do (trying to log the previous error).
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stacktrace:
at spr⒣.ᜀ(FontStyle A_0)
at sprᝧ.ᜀ(spr⒣ A_0, Single A_1, FontStyle A_2)
at sprᝧ.ᜀ(String A_0, Single A_1, FontStyle A_2)
at Spire.Doc.Formatting.CharacterFormat.ᜈ()
at spr⁂.ᜁ(TextRange A_0, sprᾔ A_1, RectangleF& A_2, Boolean A_3, spr᯼ A_4)
at spr⁂.ᜀ(TextRange A_0, IDocumentObject A_1, Paragraph A_2, String A_3, Boolean A_4)
at spr᧳.ᜀ(Paragraph A_0, spr᧴ A_1)
at spr᧳.ᜀ(Table A_0, TableCell A_1, spr᧷ A_2, Single A_3, Single A_4)
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)
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›.ᜀ(IDocument A_0)
at sprₐ.ᜀ(Document A_0, Stream A_1, ToPdfParameterList A_2)
at Spire.Doc.Document.ᜀ(Stream A_0, ToPdfParameterList A_1)
at Spire.Doc.Document.SaveToStream(Stream stream, ToPdfParameterList paramList)
at Klout7Pdf.ConvertToPdf.<Run>d__0.MoveNext() in D:\Sources\Senet\AzurePdf\Klout7Pdf\Klout7Pdf\ConvertToPdf.cs:line 34