Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
tmountain
Posts: 90
Registered: 02-27-2009

InvokeLater and GUI

Just trying to clarify when I need to use InvokeLater and synchronize on the UI thread. Is this necessary when getting or setting a value releated to the UI or only when setting a value. I know there could potentially be some visibility issues with retrieving an unsynchronized value, but this question is mainly concerned with what's allowable by the application runtime.

 

Thanks,

Travis

Please use plain text.
Developer
mjnip
Posts: 27
Registered: 09-04-2008

Re: InvokeLater and GUI

It's only when setting values using a thread other than the event thread.  Getting a value from a text field, for instance, doesn't throw an error.
Please use plain text.