Hi.
There is one page in my app which is used to statistics. It contains a table with 10+ columns and hundreds of rows. Now, to make some styling things happen, I don't just pass an array of strings as values to the table. Each table cell contains a pane, and that pane contains a node, which I can style as I want, individually.
So, a single execution of the search process that fills the table will result in creating around 1000 labels and panes. The creation alone doesn't seems to be anything heavy, but once I set them to the table, it occupies a lot of memory. Now, when the search is executed again, those 2000 views are clearly not released, because the memory load increases just like it did the first time. I was looking for a way to eliminate the panes and labels from one execution when another one happens. I understand that it Java has no "Free()" function like C does, and I can only rely on the Garbage Collector. However, I've tried the various solutions I've found around the web and have had no luck. I've tried setting all those nodes to NULL and trying to manually fire the GC, but to no avail. This way doing a few searches could easily cause an OOM.
Any pointers?
thanks a lot.