This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Looking for Help/Tips on Freeing memory in a Swing Application
posted 12 years ago
Hi, I have a desktop application that loads/edits/saves very large images(about 2000 x 1500 pixel images). The program keeps gobbling up memory until I get an Out of Memory error. Before I receive this error, the program runs around 65-70 megs or ram.. printing takes it up to 85 and sometimes causes the out of memory error. I've tried setting bufferedImages to null after using them but that doesnt seem to free space(or very little). Should I set JPanels and everything else to null after using them? Is there a good resource on the web about this topic? Thanks!