Our company needs to print hundreds of report each day and we create our pdfs using Amyuni PDF Convertor 2.08b Pro and print with crystal report 9 for our ASP.NET application (.Net F/w 1.0).
But everyday we face the same problem of "system out of memory" because the service "aspnet_wp.exe" continues to grow and eventually crashes. We found that the problem comes from Amyuni because it works fine using crystal report pdf convert (But we have other issues that stopped us from using it)
We have tried everything to release memory but no improvement.
Pls advise.

Alan
I did a little test, as it loops through and generate 100 reports.
The result was terrifying
Code: Select all
Version Init Start (K) 100 reports (K) Increased(K)
-------------------------------------------------------------------------
2.08 44,260 250,536 206,276
2.10h Eval 46,792 crashed on 84 reports --
Code: Select all
-----------------------------------------------------------
' Source code
-----------------------------------------------------------
Private Sub btnConvert_Click() Handles btnConvert.Click
Dim i As Integer
For i = 0 To 99
ConvertReport()
Next
GC.Collect()
End Sub
Private Sub ConvertReport()
Dim dsAppData As New DataSet
dsAppData.ReadXmlSchema("c:\ads_schema.xsd")
dsAppData.ReadXml("c:\ads_data.xml")
crReportDocument = New ReportDocument()
crReportDocument.Load(Server.MapPath("reports\") & "rpt_tmp.rpt")
crReportDocument.SetDataSource(dsAppData)
CrystalReportViewer1.ReportSource = crReportDocument
Dim ExportPath As String = "c:\"
Dim pdf As New CDIntfEx.CDIntfEx()
' Initialize amyuni printer driver
pdf.DriverInit(AmyuniPrinterName)
pdf.EnablePrinter(Amyuni_Licensee, Amyuni208Key)
pdf.SetDefaultPrinter()
pdf.FileNameOptionsEx = NoPrompt + UseFileName + EmbedFonts
pdf.DefaultFileName = ExportPath + CStr(Now.Ticks) + ".pdf"
crReportDocument.PrintOptions.PrinterName = AmyuniPrinterName
crReportDocument.PrintToPrinter(1, False, 0, 0)
crReportDocument.Close()
crReportDocument.Dispose()
crReportDocument = Nothing
pdf.DriverEnd()
System.Runtime.InteropServices.Marshal.ReleaseComObject(pdf)
pdf = Nothing
End Sub