This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Pb when adding element in a list and reading this list in a form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Pb when adding element in a list and reading this list in a form" Watch "Pb when adding element in a list and reading this list in a form" New topic
Author

Pb when adding element in a list and reading this list in a form

Kim Prescott
Greenhorn

Joined: Apr 10, 2006
Posts: 15
Hi,
I m working on a contact list.
All my users are saved as a list, and I created a middlet which a form page to show those contacts.

I made a form in order to add some contact,then when I quit the add form, i go back to the contact list refresh, and can see the new contact.

the first contact added don't do any problem.
I first have :
1-2-3-4 (4 contacts)
Then I have
1-2-3-4-5 (5 contacts)

But if i add a second new contact, problem start
First i had:
1-2-3-4-5 (5 contacts)
Then I have:
2-3-4-1-5-2-6-4-6-5-6-6 (12 contacts or (5+1)x2 )

if I add a 3rd contact,
then I finally have 42 contacts ...

I don't understand why this occured.
If anybody has an idea
Thanks
[ April 19, 2006: Message edited by: Kim Prescott ]
Kim Prescott
Greenhorn

Joined: Apr 10, 2006
Posts: 15
ok, i solved my pb.
it was just because of a wrong implementation of multithread script
 
GeeCON Prague 2014
 
subject: Pb when adding element in a list and reading this list in a form