flush() method of Image
again i have a problem with images (standard AWT Image). I want to display a large series of large images.
I load the first one (with the createImage method from the Toolkit),
then (by pressing a key) i flush it and load and display the next and so on.
So i always have only one image loaded at a certain time.
Anyhow, when it comes to the 15th or so (depending on the image sizes) image i just get a blank screen. It seems as if i am out of (image buffer) memory.
I also read the wiki on dealing with images but had no success.
Does anyone know if the flush() method really frees the buffer memory immediately or if it takes a little while. What else do i have to keep in mind dealing with the flush() method??