我在CMyApp类中定义了二个_RecordsetPtr变量
_RecordsetPtr m_pRs;
_RecordsetPtr m_pRs2;
在CMyApp::InitInstance()
m_pRs.CreateInstance(__uuidof(Recordset));
m_pRs2.CreateInstance(__uuidof(Recordset));
并初始化了OLE/COM环境,在CMyView类中通过以下方式调用
CMyApp * pApp=(CMyApp*)AfxGetApp();
   pApp->m_pRs->Open(strSql.AllocSysString(),pApp->m_pConn.GetInterfacePtr(),
adOpenDynamic,adLockOptimistic,adCmdText);
这样打开就没有问题,如果把 m_pRs 换成 m_pRs2编译也能通过,但程序出现运行时错误,一运行就自动关闭.这是什么原因啊?