写了个程序,在Vista下运行都很好,但是拿到Win 7上去运行就出错了,是个异常,信息如下:
"Microsoft visual c++ Runtime Library
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."在google上查阅了一下大概有2个原因:
1.可能是运行库的版本问题,诸如操作系统带的版本可能比较老,程序编译用的比较新等等.
2.写的程序里面可能正好是用了runtime的方法出了问题,比如不小心数组越界,空指针等等.找了很久都不能找到其根源.不知道有人有比较好的建议么?
"Microsoft visual c++ Runtime Library
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."在google上查阅了一下大概有2个原因:
1.可能是运行库的版本问题,诸如操作系统带的版本可能比较老,程序编译用的比较新等等.
2.写的程序里面可能正好是用了runtime的方法出了问题,比如不小心数组越界,空指针等等.找了很久都不能找到其根源.不知道有人有比较好的建议么?
检查了那个类,类很一般,我把构造函数里面的代码都注释掉,也出错
检查了一下这个类所有的全局变量,只有一些基本数据类型的定义,诸如int g_iCount=0;这种不知道原因了,有人又啥好建议么?谢谢~
多半是运行库的原因,你用depends walker看看你的exe依赖于哪些库