arjeneh / jpowder

Automatically exported from code.google.com/p/jpowder
1 stars 0 forks source link

Jpowder has memory errors after opening and closing many plots #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. open and close a lot of plots (more than 10)
2. memory usage becomes excessive

What is the expected output? What do you see instead?
Jpowder stops opening new windows.
stdout shows exceptions

Suggestion:
Write a method to clean up internal frames
Known issue in swing

Original issue reported on code.google.com by anders.m...@stfc.ac.uk on 10 May 2010 at 1:04

GoogleCodeExporter commented 9 years ago
Perhaps a solution is to add a method to internal frame class called something 
like 
emptyFrame() which sets every attribute to null, and call this method 
everywhere just 
before you set a given internal frame to null.

Original comment by anders.m...@stfc.ac.uk on 10 May 2010 at 3:07

GoogleCodeExporter commented 9 years ago

Original comment by anders.m...@stfc.ac.uk on 10 May 2010 at 3:08

GoogleCodeExporter commented 9 years ago

Original comment by anders.m...@stfc.ac.uk on 10 May 2010 at 3:45

GoogleCodeExporter commented 9 years ago
Solved. When memory reach critical stage. Release memory and then force Jave to 
release memory by adding empty internal frame.

Original comment by anders.m...@stfc.ac.uk on 1 Jul 2010 at 3:57