Thanks Marcel,

They are posted fast.

Are you saying to do something like this for the mutex :

Qt Code:
  1. struct CANDATA
  2. {
  3. QString strId;
  4. QString strTime;
  5. QString strData;
  6.  
  7. QMutex m_Mutex;
  8.  
  9. public:
  10. static QString getId() { return strId; }
  11. static QString getTime() { return strTime; }
  12. static QString getData() { return strData; }
  13.  
  14. static void setId( QString id ) { m_Mutex.lock(); strId = id; m_Mutex.unlock();}
  15. static void setTime( QString time ) { m_Mutex.lock(); strTime = time; m_Mutex.unlock();}
  16. static void setData( QString data ) { m_Mutex.lock(); strData = data;m_Mutex.unlock(); }
  17.  
  18. };
To copy to clipboard, switch view to plain text mode 

Regards,
Steve