02-14-2006 10:04 AM
02-15-2006 12:03 PM
02-15-2006 12:34 PM
Thank you for your answer, but that is not the case. There is no UI in this DLL, but it is using some convinenient MFC classes, like threads, CString, etc. The threading really was not even involved in the example that crashed. The function that crashed was
selectNodes on MSXML2::IXMLDOMNodePtr. Here is the code:
MSXML2::IXMLDOMNodeListPtr
selectNodes (LPCTSTR expression, MSXML2::IXMLDOMNodePtr pStartNode){
CComBSTR quesryBstr (expression);
return pStartNode->selectNodes (quesryBstr.m_str); //_bstr_t(expression));}
where the pStartNode was a root node of
MSXML2::IXMLDOMDocument2Ptr m_pXMLDoc;
hr = m_pXMLDoc.CreateInstance ("Msxml2.DOMDocument.4.0", NULL, CLSCTX_INPROC_SERVER);
I commented out really everything except this function, so there was nothing to corrupt the memory or any other problems.
What can be of a problem?
Thanks.
02-15-2006 02:06 PM
02-15-2006 03:48 PM
CWinApp::InitInstance();
CoInitialize(NULL);
// should be done in the main programAfxEnableControlContainer();
02-16-2006 09:48 AM