Solved

How to free images in memory?

Posted on 1997-11-12
2
192 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
Comment Utility
Call the flush() method on the image.
0
 

Author Comment

by:jcriado
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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 about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

762 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

11 Experts available now in Live!

Get 1:1 Help Now