maybe you should try dynamic_cast<> and only access the data if the pointer to the casted object is valid. At least, that is the safest way to do a cast.

Qt Code:
  1. void DMXTable::SLOT_AllDMXPropsReceived( unsigned long u4member, void* pData )
  2. {
  3. CDMXGateway* pNode = dynamic_cast<CDMXGateway*>( pData );
  4. if (pNode) {
  5. // Access data & crash
  6. SetDeviceName( pNode->GetDeviceName() );
  7. SetIPAddr( pNode->GetIPAddr() );
  8. ...
  9. }
To copy to clipboard, switch view to plain text mode