Microsot Visual C++ Runtime Libarary Runtime error,该怎么解决

Microsot Visual C++ Runtime Libarary Runtime error
使用ADO访问ORACLE数据库程序,程序只查询数据,开始程序运行正常,但运行一段时间(半小时)左右,会出现错误对话框:
对话框标题:Microsot Visual C++ Runtime Libarary 

错误:
Runtime Error!
Program: C:\.....
This application has requested the runtime to terminate it in an unusual way. please contact the application support team for more information.

程序每5秒钟查询一次数据!

请大侠帮忙!!谢谢~~~~

------解决方案--------------------
所有的ADO数据库操作都加try...catch(_com_error& e){AfxMessageBox(e.Description();}
------解决方案--------------------
以调试模式运行, 出问题的时候 暂停 然后查看各个线程的堆栈, 看弹出错误的哪个线程, 然后逐级回退的到代码处
------解决方案--------------------
可能是数组越界吧
------解决方案--------------------
探讨
可以用CStringArray实现类似CString sArray[2][10]的数组吗?

------解决方案--------------------
在 BOOL C***Dlg::CompareQueryData()函数里打断点,跟踪出错原因,应该是指针指向错误。