Hi Peter,

Peter Coppens <[EMAIL PROTECTED]> wrote on 07/06/2007 06:52:07 
PM:

> I think the problems is "created" in
> SVGElementImageBridge#createImageGraphicsNode
> 
> I added the release invocations and recompiled. The rendering still 
seems to
> work and now the image file no longer stays locked.
> 
> Should I submit a bug for this, or is this intentional ?

   This is intentional.  Some raster formats read the data only
on demand (in particular Tiff) doing the above will cause those
formats to fail.

   However JPEG and PNG read the entire file up front currently,
so those readers should close the stream when they are done.  However
even for those formats you could end up with trouble because they
read the data in a separate thread, so you might close the
stream on them when they are still reading.

   Given the whole purpose of the ProtectedStream is to keep
children for closing streams they shouldn't (for example it's
really expensive to keep re-opening an HTTP stream).  So the
real fix here is a bit more complex than just adding 'close'
at the end of those readers (however they should do that).


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to