Skip to main content
gamedev.net
🔒 Locked

Menu Programming

Started by THE_MaKrUs Jan 28, 2006 at 7:16 AM 3 replies 800+ views
Original Post
THE_MaKrUs
THE_MaKrUs
Hi all, im programming a Menu for my new Game. I listed all buttons and Checkboxes in ArrayLists. If i want to change to the Optionsscreen. I must clear both ArrayLists and create new buttons. If i clear the ArrayLists the programm exits, with this error: Enumeration changed. Enumaration could not performed. Anybody got a clue? mfg Markus
theZapper
theZapper
I'm sorry but I don't understand what you are saying, what language are you using, Java?
Are you trying to say that you run a clear() method on your ArrayLists and your program exits? Post some code.
---When I'm in command, every mission's a suicide mission!
theZapper
theZapper
I doubt there's a bug in somthing so frequently used like ArrayList.clear(), you need to do a bit of debugging I think! :-)
---When I'm in command, every mission's a suicide mission!
mikeman
mikeman
Quote:

This seems to be a bug in the language.


Of course, after all we have excluded all other possibilities.

As theZapper said, get to work and do some debugging. But the sound of the error, you are most likely using an enumerator of an ArrayList that has been modified.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.