Hello! I have search this subject on forum, but I don’t professional in threads between GUI and other threads (worker threads).
I develop Jabber client and create all Jabber logic (by gloox library) in worker thread.
I inherit GUI Component (like LoginComponent with login and password text editors) on gloox ConnectionListener and handle it onConnect() at my GUI Component.
Now I want update my GUI Component (LoginComponent) but onConnect() work at worker thread, and i get assert into CHECK_MESSAGE_MANAGER_IS_LOCKED_OR_OFFSCREEN
//==============================================================================
void Component::setBounds (const int x, const int y, int w, int h)
{
// if component methods are being called from threads other than the message
// thread, you’ll need to use a MessageManagerLock object to make sure it’s thread-safe.
CHECK_MESSAGE_MANAGER_IS_LOCKED_OR_OFFSCREEN
…
I try MessageManager::getInstance()->broadcastMessage().
Maybe ChangeBroadcaster/ChangeListener?
How to communicate between worker thread and GUI thread to change GUI appearance?
Thanks!