The referenced object is collected on the first pass, but the WeakReference 
remains. Usually native resources will be associated with the WeakReference and 
it is these which aren't disposed until the WeakReference is retrieved from the 
queue. With a finaliser nothing gets removed until after finalise is called, 
while with a WeakReference at least the referenced object goes straight away.
[Message sent by forum member 'mthornton' (mthornton)]

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

===========================================================================
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