We just purchased the latest version (having used this product for many years). We wanted to take advantage of the multithreading capability. We ran some tests generating 3700 documents single threaded and then multithreaded. When running it multithreaded we had multiple errors (see below). It worked without issue single threaded.
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr source, Object destination, Int32 startIndex, Int32 length)
at System.Drawing.Internal.GPStream.Write(IntPtr buf, Int32 length)
at System.Drawing.SafeNativeMethods.Gdip.IntGdipDeleteGraphics(HandleRef graphics)
at System.Drawing.SafeNativeMethods.Gdip.GdipDeleteGraphics(HandleRef graphics)
at System.Drawing.Graphics.Dispose(Boolean disposing)
at System.Drawing.Graphics.Dispose()
at spr?.?()
at spr?.?(Int32 A_0, Int32 A_1, ImageType A_2, MemoryStream A_3, Boolean A_4, Boolean A_5, Boolean A_6)
at spr?.?(spr? A_0)
at spr?.?(Document A_0)
at spr?.?(Document A_0, ToPdfParameterList A_1)
at Spire.Doc.Document.?(String A_0, ToPdfParameterList A_1)
at Spire.Doc.Document.SaveToFile(String fileName, ToPdfParameterList paramList)
at SmartGrid.Service.MeterDataMgt.Factory.Document.DocumentGeneratorBase.WritePDF(String name) i