Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BufferedImages not garbage collected -- any suggestions?




On Mar 29, 2006, at 8:12 AM, Michael Ellis wrote:


What made the difference was having the Component class' "finalize ()" method explicitly call "flush()" on its BufferedImage before nulling it out.


I hope this helps to shed some light on the situation.

All except for what the fix is indicated to be - at least as far as my testing goes but that could be lacking some essential ingredient. You might be in a situation where you are accumulating 1000's of the 48 byte chunks I originally started out freeing. But it would have to be quite a few to be involved in OutOfMemory exceptions. Otherwise my testing has shown flush() not making any kind of a difference as far as BufferedImage goes.
With whatever test data you have a bug report might be in order if GC is in fact broke with or without regard to the flush() method.



Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: BufferedImages not garbage collected -- any suggestions? (From: Michael Ellis <email@hidden>)
 >Re: BufferedImages not garbage collected -- any suggestions? (From: Michael Hall <email@hidden>)
 >Re: BufferedImages not garbage collected -- any suggestions? (From: Michael Ellis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.