Solved

How to free images in memory?

Posted on 1997-11-12
2
210 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
couple of eclipse 5 52
hibernate jars 4 60
Delete Android all or certain applications data programmatically 9 113
hashmap order 17 42
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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…
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:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

726 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