I think you're only supposed to do form updates from one thread. I'm
not sure if J2ME deals with this the same way but check into the
invokeLater() method which will make your updates on the event
processing thread.
Darryl Pierce - 26 Jun 2005 15:09 GMT
> I think you're only supposed to do form updates from one thread. I'm
> not sure if J2ME deals with this the same way but check into the
> invokeLater() method which will make your updates on the event
> processing thread.
No, it doesn't. Swing works that way, the LCDUI does not.

Signature
Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard
> I've got a TimerTask thread that's getting GPS readings every few
> minutes,pushing them up to a server on the Internet, and appending
[quoted text clipped - 3 lines]
> constuctor. Should I be able to append items to the form from multiple
> threads?
Yes, you can do that. There's nothing about the LCDUI that precludes
more than one thread appending to a Form.
> It seems like one thread does not recognize the other threads
> items... since sometimes the one thread seems unable to delete the
> other
> threads items on the same form and the items get mixed together.
Again, there's nothing in the LCDUI the prevents multi-threaded access,
and there's nothing about the Item set of classes that attaches an Item
to a particular Thread. What code are you using to identify an Item and
then remove it from the Form? Please share the code so we can examine it
together.

Signature
Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard