Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0C8CDAA3 for ; Wed, 18 Jul 2012 21:00:19 +0000 (UTC) Received: (qmail 30636 invoked by uid 500); 18 Jul 2012 21:00:19 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 30573 invoked by uid 500); 18 Jul 2012 21:00:19 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 30561 invoked by uid 99); 18 Jul 2012 21:00:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2012 21:00:19 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ss401533@gmail.com designates 209.85.214.182 as permitted sender) Received: from [209.85.214.182] (HELO mail-ob0-f182.google.com) (209.85.214.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2012 21:00:12 +0000 Received: by obbun3 with SMTP id un3so3488734obb.13 for ; Wed, 18 Jul 2012 13:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4KuOHAIlCWTsTw2tr9WCx49x1O8VNl7037k3Kj6mGgM=; b=jf3pxrNiXoOy9LmsZUOymiiad7keAZGnN7HYBijBWKcbBhx//AfrMJbq33ko+251cr WjDaYjcMMGRDFe4bLa1nEkwwX/bS9PiollXcVPodqe7/OuPzT48xw3+AUFWjTpxnkwRF USn05wNuUSOPH0T/fp8OPRrG6m5DjZEwW45iwopqtG9cmG3lQt0kvo3tVC//4gerUu3m nZEukWtjy/pljerfeVFnVHSkdA/wNmLFsnMylfLY/iDfKN7I9QmqRKFF0lZ9q/WL/79c ehTd0e8JYJ8CMvnch4oRH0KZxrDPcoZfE+CL5o1eAqzYwyqtOosfRyaSytVlf3Guo+w1 8TRA== MIME-Version: 1.0 Received: by 10.60.24.4 with SMTP id q4mr3361666oef.50.1342645191893; Wed, 18 Jul 2012 13:59:51 -0700 (PDT) Received: by 10.60.46.7 with HTTP; Wed, 18 Jul 2012 13:59:51 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Jul 2012 13:59:51 -0700 Message-ID: Subject: Re: Delivery Status Notification (Failure) From: Sridhar Sarnobat To: user@pivot.apache.org Content-Type: multipart/alternative; boundary=e89a8fb20606b8e3aa04c520f185 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb20606b8e3aa04c520f185 Content-Type: text/plain; charset=ISO-8859-1 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. --e89a8fb20606b8e3aa04c520f185 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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.=A0I have a memory leak that I don'= ;t know how to stop.=A0I am manipulating java.io.File obje= cts (not streams or readers) and I don't see any way to close these fil= es.

I believe that I am not releasing resources of a File 1 before calling the = following line with File 2:

=A0 org.apache.pivot.wtk.ImageView.se= tImage( java.io.File.toURI().toURL() )

I hope that's enough information. What am I doing wrong? I don't wa= nt to increase the available heap space. This is supposed to be a simple app. --e89a8fb20606b8e3aa04c520f185--