• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Looking for Help/Tips on Freeing memory in a Swing Application

 
Matt Wilcko
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic