• 5386阅读
  • 2回复

[提问]QT为什么DEBUG的时候会弹出VC++的错误? [复制链接]

上一主题 下一主题
离线wter27
 
只看楼主 倒序阅读 楼主  发表于: 2011-01-19
我用的QT,然后也安装了VC++ 6。
  1. QVector<int> question_type(6); question_type[0]=1;

加入上面的代码的时候会出现下面的情况。定义的字符串数组变量却不会出现这样的问题
Microsoft Visual C++ Runtime Library
Runtime Error!
Program: D:\Mount&Blade\mount&blade.exe

this application has requested the runtime to terminate it in an unusual way.
please contact the application's support team for more information.
离线jdwx

只看该作者 1楼 发表于: 2011-01-20
试了一下没发现你说的问题!
最好提供全部代码?
发帖时要说明:操作系统、Qt版本、编译器,这样能更快的得到回复。
离线wter27
只看该作者 2楼 发表于: 2011-01-20
问题找到了,数组引用的时候超标了。。。汗!!!
快速回复
限100 字节
 
上一个 下一个