This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread 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!