Hi Feline
I've included an example below. It seems that in many files, if I right click on m_pDevice from within the definition of CPrivateData (the CPP file), that VAX will not find instances where m_pDevice is used. However, if I right click on m_pDevice from the destructor of CPOMSCTE104DeviceCOMHandler, then it will find references properly.
Thoughts?
POMSCTE104DeviceCOMHandler.h
class CPOMSCTE104DeviceCOMHandler : public QObject
{
Q_OBJECT
public:
CPOMSCTE104DeviceCOMHandler(CPBSSCTE104DeviceServer* pDevice);
~CPOMSCTE104DeviceCOMHandler();
private:
class CPrivateData;
std::auto_ptr<CPrivateData> m_cPrivateData;
friend class CPrivateData;
};
POMSCTE104DeviceCOMHandler.cpp
class CPOMSCTE104DeviceCOMHandler::CPrivateData
{
public:
CPrivateData(CPBSSCTE104DeviceServer* pDevice) : m_pDevice(pDevice) {}
CPBSSCTE104DeviceServer* m_pDevice;
};
//////////////////////////////////////////////////////////////////////////////////////////////////
CPOMSCTE104DeviceCOMHandler::CPOMSCTE104DeviceCOMHandler(CPBSSCTE104DeviceServer* pDevice) :
m_cPrivateData(PBS_NEW CPrivateData(pDevice))
{
}
CPOMSCTE104DeviceCOMHandler::~CPOMSCTE104DeviceCOMHandler()
{
m_cPrivateData->m_pDevice->destroySteam();
}