?
Solved

How to free images in memory?

Posted on 1997-11-12
2
Medium Priority
?
219 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

765 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