[reSIProcate] Dum shutdown question
- From: "Kovar, William \(Bill\)" <bkovar@xxxxxxxxx>
- Date: Thu, 5 Apr 2007 10:18:36 -0400
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
Avaya, Inc.
(732) 852-2609