https://issues.apache.org/bugzilla/show_bug.cgi?id=45171

           Summary: PNG files locked until JVM exits
           Product: Fop
           Version: 1.0dev
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: images
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: [EMAIL PROTECTED]


This might actually be a problem in xmlgraphics-commons, but I'm not sure.  It
appears that if an FO file makes an external-graphic reference to a PNG file
and renders to either PDF or PostScript (those are the only 2 I tried), the PNG
file remains locked until the JVM exits.  Note that if there are multiple
external-graphic elements only 1 or the last 2 are locked.

To summarize the application flow:
1. Write PNG files to directory and close them
2. Create FO file containing external-graphic reference to those PNG files
3. Create PDF file through FOP
4. Delete PNG files

The File.delete() call fails on some of the PNG files.

I tried this same test with JPG files and they all deleted just fine.  I'm
guessing that somewhere an InputStream isn't getting closed.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to