You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Sridhar Sarnobat <ss...@gmail.com> on 2012/07/18 22:59:51 UTC
Re: Delivery Status Notification (Failure)
I have created a slideshow application using Apache Pivot, and it works
great.
But it reaches 285 MB after I cycle through about 50 jpg images, and starts
throwing OOM errors. *I have a memory leak that I don't know how to stop.* I
am manipulating java.io.File objects (not streams or readers) and I don't
see any way to close these files.
I believe that I am not releasing resources of a File 1 before calling the
following line with File 2:
org.apache.pivot.wtk.ImageView.setImage( java.io.File.toURI().toURL() )
I hope that's enough information. What am I doing wrong? I don't want to
increase the available heap space. This is supposed to be a simple app.