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