Hi,
I am creating JGoView object and putting it into the panel and putting jpanel into JFrame. The canvas size would be approx 5000 * 5000
After disposing JFrame object, the heap memory is not decreasing. I tried creating JFrame and putting JGoView object and disposing it in a for loop of 500. After loop ends,heap memory is not coming down and eventually I am getting OutOfMemoryError.
The code for disposing JFrame
fr.setVisible(false);
fr.getContentPane().removeAll(); Or fr.removeAll();
fr.dispose();
The same operation I did without using JGo object but i did not find any memory leakage.
Can you please let me know if JGo internally maintains some object reference may be some listeners registration etc etc and not releasing it. Because ideally, the JGoView object should be available for GC but its not.
Thanks & regards,
Binit Bhaskar