> Usually native resources will be associated with the WeakReference If I understand you correctly you are saying the following. Given:
1) Font object 2) NativeFont object 3) WeakReference<Font> 4) Map<WeakReference, NativeFont> 5) ReferenceQueue of WeakReferences whose underlying objects have been GCed Usage scenario: a) User creates a new Font object b) a WeakReference is created and the entry is added to the Map c) the Font object gets garbage-collected some time in the future and its WeakReference is added to the ReferenceQueue. d) The Disposer thread picks up the WeakReference from the ReferenceQueue, and finds the associated NativeFont using the Map. e) The Disposer thread deallocates NativeFont and removes WeakReference from the ReferenceQueue Is that correct? [Message sent by forum member 'cowwoc' (cowwoc)] http://forums.java.net/jive/thread.jspa?messageID=239898 =========================================================================== 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".
