vc6.0出现错误: Debug Assertion Failed! File:strex.cpp Line:681解决方法

最近学习VC6.0调试一个利用OCI连接Oracle数据库的程序,一切调试都通过了,但最后运行的时候出现错误:

 Debug     Assertion     Failed!       
  File:strex.cpp       

  Line:681

For information on how your program can cause an assertion failure,see the Visual C++ documentation on asserts.

(Press Retry to debug the application)

 

点击Retry后,程序关闭,系统报错误。

通过上网查找原因和思考,发现这种错误主要是因为程序段有*.Format()语句,并且此语句里有些符号书写不和规范或是书写错误的原因引起的。

所以,如果以后在遇到这种错误,可以先考虑这方面的原因!

                        2009.7.12 

你可能感兴趣的:(assert)