I have .NET3.5 Windows Service application which prints Crystal Reports and
once in a while I get the following error, if I try to print right after the
error everything works just fine. Does anyone know what might be causing
this problem?
The error is occuring at CrystalReport.P rint(String printer, Int32 copies,
Boolean collated, String paperSource) line
Thank You
Peter
System.AccessVi olationExceptio n: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.
at System.Drawing. SafeNativeMetho ds.PrintDlg(PRI NTDLGX86 lppd)
at System.Drawing. Printing.Printe rSettings.GetOu tputPort()
at System.Drawing. Printing.Printe rSettings.FastD eviceCapabiliti es(Int16
capability, IntPtr pointerToBuffer , Int32 defaultValue, String printerName)
at System.Drawing. Printing.Printe rSettings.Get_P aperSources()
at System.Drawing. Printing.Printe rSettings.get_P aperSources()
at CrServer.Crysta lReport.Print(S tring printer, Int32 copies, Boolean
collated, String paperSource)