Hi,

what is the best way to free accelerated memory? 

I have several VolatileImage objects at the same time. When I don't need one of 
them anymore, I want it to be off the accelerated memory as fast as possible 
because I need the memory for an other image.

Is it enough to do something like this (if "image" is a VolatileImage object):

image = null;

Or is it better to call this (or does it make a difference, at all?):

image.flush(); 
image = null;

After the call "image=null;" is the accelerated memory freed immediately or 
will it not be frred until the garbage collector finally destroys my image 
object?

Are there any other possiblilities to free accelerated memory the fast way? 

I hope you got some good hints for me concerning this problem because 
accelerated memory on my system is very rare.

Thanks,
Maik
[Message sent by forum member 'kiamur' (kiamur)]

http://forums.java.net/jive/thread.jspa?messageID=296688

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to