I have a class that returns a pane filled with labels of person's data.
Labels are created programmatically within the class.
In a loop of minimum 5, I call this class with a map of person data. And then put it in a list view.
Each loop is called by user, and After each loop I clear items of the listview, to fill it with the next group of persons
Everything was working fine, even with very large loops 200+ instances.
Untill I decided to "tidy things up" by loading a designer layout into the pane, containg same labels. No difference, same code.
Then the whole app started to hang, producing java.exe error, after only 3-4 loops, 5 iterations each... This is improved a little bit when using another device with 8gb ram rather than 4gb
..
Question 1 : what went wrong? Does it mean that layout consumes more ram?
Question 2 : is there a way to clear ram from class data after every loop.
Labels are created programmatically within the class.
In a loop of minimum 5, I call this class with a map of person data. And then put it in a list view.
Each loop is called by user, and After each loop I clear items of the listview, to fill it with the next group of persons
Everything was working fine, even with very large loops 200+ instances.
Untill I decided to "tidy things up" by loading a designer layout into the pane, containg same labels. No difference, same code.
Then the whole app started to hang, producing java.exe error, after only 3-4 loops, 5 iterations each... This is improved a little bit when using another device with 8gb ram rather than 4gb
..
Question 1 : what went wrong? Does it mean that layout consumes more ram?
Question 2 : is there a way to clear ram from class data after every loop.