This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "OutOfMemoryError" Watch "OutOfMemoryError" New topic


Rebecca Abraham
Ranch Hand

Joined: Feb 20, 2003
Posts: 37
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.
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
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
subject: OutOfMemoryError
Similar Threads
Opera 10.3 problem page loading 2 times
how to display all months of a particular year according to the following rule
Populate JCombo Box with different Values in each Row in JTable
setting default value for a combobox
display date(formatted with select boxes) from oracle DB in jsf