Beiträge von andrewnoel

    I am using the standard PDFControl. I am running report generating software in a ASP.NET environment. I have seen another issue as well which may be related to this one; after about 35 reports were generated, one of the calls to the PDFControl hung and did not return. Each report generated uses the following function:

    // *** convertToPDFFile

    protected void convertToPDFFile(ArrayList aImages)
    {
    wPDF.PDFControl lPdfControl = new wPDF.PDFControl();
    lPdfControl.FileName = mApplicationPath + "\\" + mReportFileName;

    lPdfControl.BeginDoc();
    foreach (Image lImage in aImages)
    {
    bool lResult = lPdfControl.StartPage(lImage, 0);
    lPdfControl.DrawImage(lImage);
    lPdfControl.EndPage();
    }
    lPdfControl.EndDoc();
    lPdfControl.Dispose();
    }


    I have the wPDF reference added to my c# project and the version number is 2.2.1274.26147.

    I am using wPDFControl with ASP.NET. I am getting an error on shutdown of ASP.NET (I shutdown by running iisreset.exe) that seems to be caused by the line:

    wPDF.PDFControl lPDFControl = new wPDF.PDFContrl();

    The error is:

    An unhandled exception of type 'System.InvalidOperationException' occurred in system.drawing.dll
    Additional Information: The Object is currently in use elsewhere.

    I tried calling the dispose method on my PDFControl object, but no luck!! Any help is greatly appreciated.

    Andrew