< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] Dum shutdown question


I'm seeing a problem where the destructor for DUM is not being called when I think I'm destroying it. I am creating several UAs with DUM all attached to the same SipStack. My construction and destruction is as follows:
 
CUserAgent::CUserAgent()
{
    mDum = new DialogUsageManager(*(m_pSipSwitch->TheStack));
    m_dumThread = new DumThread(*mDum);
}
 
CUserAgent::~CUserAgent()
{
    if (m_dumThread) {
        m_dumThread->shutdown();
        m_dumThread->join();
        delete m_dumThread;
    }
    if (mDum) {
        delete mDum;
    }   
}
 
What have I missed?
 
Bill Kovar
bkovar@xxxxxxxxx
Avaya, Inc.
(732) 852-2609