This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I have to build a screen that displays some what in the following format: A B C Total hours Jan'01 10 20 30 60 Feb'01 10 0 15 25 Mar'01 0 0 10 10 20 20 55 95 (total) Jan'01 was selected from a combo box (combo1)populated with all the months from Jan 2000 to Feb 2003. Mar'01 was also selected from a similar combo box(combo2). I have a 3rd combo box populated with different categories(A, B,...). When i select a category and also months from the 2 respective combos( say Jan'01 and Mar'01), i should get all the hours for the selcted ategory for the selected months. If i don't select anything from the 3 combos, the time for every category must be displayed for every month populated in the combo box. The code i wrote works perfectly upto 5 categories. But once i add a 6th category, and try a blank search i get an OutOfMemoryError. But if i reduce the number of months i want displayed, they get displayed. This goes on. As the number of categories increase, the number of months that can be displayed gets decreased. Is there something i can do? Please help. Thanks. Rebecca
hi there is not to much we can do without seeing your code. i get outofmemory errors when: - doing recursion without proper termination - recursion with high levels of recursion - creating objects in an infinite loop - k