We have a Windows Service that runs batch jobs using multiple threads. When trying to generate PDFs concurrently in multiple threads, we get the below exception. Any workaround for this?
Version:1.0StartHTML:0000000105EndHTML:0000001031StartFragment:0000000127EndFragment:0000001011System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Drawing.SafeNativeMethods.PrintDlg(PRINTDLGX86 lppd) at System.Drawing.Printing.PrinterSettings.GetOutputPort() at System.Drawing.Printing.PrinterSettings.FastDeviceCapabilities(Int16 capability, IntPtr pointerToBuffer, Int32 defaultValue, String printerName) at System.Drawing.Printing.PrinterSettings.Get_PaperSizes() at System.Drawing.Printing.PageSettings.PaperSizeFromMode(DEVMODE mode) at System.Drawing.Printing.PageSettings.GetPaperSize(IntPtr modeHandle) at System.Drawing.Printing.PageSettings.get_PaperSize() at Telerik.Reporting.Drawing.PageSettings.GetDefaultPaperKind() at Telerik.Reporting.Drawing.PageSettings..ctor() at Telerik.Reporting.Report.get_PageSettings() at Centroid.Reports.LoadCoverPage.InitializeComponent()
[snip]