Hello, Or is a special problem of my environment. I replaced only 3 class files in the original 1.7 batik ?! The 3 File where the comment is 1) Now closes streams when it is done reading the image.... Perhaps thats the problem ? Should the Stream closed elsewhere or at the SVGImageElementBridge#createImageGraphicsNode ? My Problem was that i am not able to create jar Files from the current build, so i replaced 3 Files in the original 1.7 source.
________________________________ Von: Kerschbaum Michael Gesendet: Mittwoch, 05. August 2009 13:46 An: [email protected] Betreff: Hello Thomas, 2 or 3 weeks ago you fixed the SVGImageElementBridge so that the Stream should be released after a PNG or a JPEG, etc. was opened. I tested it now but without success. Then i looked into your changes... I saw that there a 3 ways in the method createImageGraphicsNode... but the reference.release(); is only called in one of that 3 ways ?! The finally block at the end is not executed if a return is made ! Or is this if wrong ?? Because the tie is called, but the super.close will not be executed because wasClosed is only set to true in the overwritten close method ?? public synchronized void tie() throws IOException { isTied = true; if (wasClosed) { super.close(); // System.err.println("Closing stream - from tie"); } } If i call release in any of the 3 ways the image is closed and can be overwritten outside of the application while its viewed ... (I clean the cache everytime i load a new svg) mfg Michael
