0 Replies Latest reply: Jan 21, 2013 1:09 AM by 984080 RSS

    Garbage collect issue when removing Tabs from a Tabpane

    984080
      Hey,

      I've encounter a garbage collect problem when removing the Tabs from a TabPane.
      This issue seems already reported on jira RT-25652. Seems their would be a patch available..
      But I have no experience wath this means, or wath I should do to solve this?

      In my UI, tabs are very common, and a memory leak is the last I thing want..
      So when you perform next code, the memory leaks..
      @FXML
      private TabPane tpAddress;
      
      //clean tabs
      for (Tab t : tpAddress.getTabs()) {
             t.setContent(null);
      }
      tpAddress.getTabs().clear();
      Can someone tell me how to solve this problem? Or do someone can tell me if this problem is solved in a newer release of javafx?


      Thanks in advance!