Hi,

I have the following code :

Qt Code:
  1. QList<QObject*>Signals;
  2.  
  3. if( theApp->m_dcb.m_oSignalMap.count() > 0 )
  4. {
  5. Signals = theApp->m_dcb.m_oSignalMap.values( strId ) ;
  6. if( Signals.size() > 0 )
  7. {
  8. CDADcb::CSignal* pSignal = (CDADcb::CSignal*)Signals.at(0);
  9.  
  10. // This signal belong to this CAN id, there can be many signals that do
  11. {
  12. // we need to do the conversion here - TODO
  13. pSignal->m_strRawData = strData;
  14. pSignal->m_nCount++;
  15. }
  16. }
  17. }
To copy to clipboard, switch view to plain text mode 

m_oSignalMap is a QMultiHash<QString, QObject*> of which CSignal objects are stored keyed on a string value. For some reason, this bit of code causes my application to crash at incoherent intervals, sometimes after a minute, sometimes after 5. The crash is in QHash.h when trying to find the key ( the key seems to be a bad ptr? ).

Sorry I can explain more, just seems so hit and miss...

Regards,
Steve