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.
void DMXTable::SLOT_AllDMXPropsReceived( unsigned long u4member, void* pData )
{
CDMXGateway* pNode = dynamic_cast<CDMXGateway*>( pData );
if (pNode) {
// Access data & crash
SetDeviceName( pNode->GetDeviceName() );
SetIPAddr( pNode->GetIPAddr() );
...
}
void DMXTable::SLOT_AllDMXPropsReceived( unsigned long u4member, void* pData )
{
CDMXGateway* pNode = dynamic_cast<CDMXGateway*>( pData );
if (pNode) {
// Access data & crash
SetDeviceName( pNode->GetDeviceName() );
SetIPAddr( pNode->GetIPAddr() );
...
}
To copy to clipboard, switch view to plain text mode
Bookmarks