if(m_pRecordset!=NULL)
m_pRecordset->Close();
//delete m_pRecordset;//系统执行到此崩溃,因m_pRecordset并非对象指针
if(m_pConnection!=NULL)
m_pConnection->Close();
::CoUninitialize();//卸载com组件
转载于:https://www.cnblogs.com/huking/archive/2009/09/18/1569477.html