摘要:
转自:http://hi.baidu.com/smallay/item/ba925a3e105ae49bb80c03c8先单步调试,找到崩溃处代码为:CComObject<foo>* p;CComObject<foo>::CreateInstance(&p); //<==此处这应该是很正常的用法,排除了代码不正确的问题。继续深入CreateInstance函数,崩溃在altcom库文件中:CComObject<Base>* p = NULL;ATLTRY(p = new CComObject<Base>()); //<==此处 阅读全文