Solved

How to free images in memory?

Posted on 1997-11-12
2
213 Views
Last Modified: 2012-05-04
I have a standalone application based on a group of image animations. I have used the Media Tracker class to load images and play the animation. After the animation, images are not freed and the application sends a message of error: Out of Menory. This happens after the application plays only three animations.
(I use a direct call to the garbage collector, but it does not work).

   
0
Comment
Question by:jcriado
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
gwalters earned 100 total points
ID: 1230412
Call the flush() method on the image.
0
 

Author Comment

by:jcriado
ID: 1230413
Your answer help me to free some memory with the flush() function, but one third of memory consummed is not freed.
Is this a normal bug? How can I solve this?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question