Re: IXMLDOMDocumentPtr instance destruction
Doug thanks for your reply.
I have a MFC extension dll where I am creating this DOM instance. This
dll is loaded OnClick event of a button. When I click a different
button I am using a ApplicationDestroy function to destroy this dll
window.
CJobEditorClient::ApplicationDestroy(void)
{
if(m_pJobEditorDlg->m_hWnd != NULL)
{
m_pJobEditorDlg->ShowWindow(SW_HIDE);
m_pJobEditorDlg->DestroyWindow();
m_pJobEditorDlg->m_hWnd = NULL;
}
//m_pJobEditorDlg->ShowWindow(SW_HIDE);
//pLotDlg->DestroyWindow();
return TRUE;
}
From my understanding, after this function gets executed the DOM
instance needs to be destroyed and decrement the handle count. But in
my case the handle count doesnt gets decremented.it still shows the
same count 255
I have even modified the CJobXMLParser destructor
CJobXMLParser::~CJobXMLParser()
{
m_plDomDocument.Release();
delete m_plDomDocument;
m_pDocRoot.Release();
delete m_pDocRoot;
}
Here is what the macros do
#define BEGIN_BLOCK do{
#define END_BLOCK }while(0);
#define LEAVE_BLOCK break;
Hope I am not creating any confusion.
Sandy