Solved

How to free images in memory?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JAVA part two 5 56
Where to store the queries for modification of table 4 53
fibonacci ten numbers 4 23
even odd program using while loop 3 25
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

932 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now