- 主题:status code :-1073741823 内存溢出的问题有解了吗?
- Error - RtlWerpReportException failed with status code :-1073741823. Will tr
 y to launch the process directly
 
 做了一个窗口类,里面用到了大量的QComboBox,然后每个QComboBox关联了一个QSqlQueryModel, 把其中的一些QSqlQueryModel的指针定义为了private成员函数,于是在窗口关闭的时候就crash了。baidu了一下说是内存溢出,有1M的限制。
 
 qt create版本5.6.1,不知现在这个问题有解决方案吗?目前只能把QSqlQueryModel在构造函数中创建好,然后需要的时候用QSqlQueryModel的model()函数获取。
 --
 FROM 101.54.242.*
 
- 用 valgrind 看看。
 
 多半是 double free 了。
 
 
 【 在 passbyer (扯淡王) 的大作中提到: 】
 : Error - RtlWerpReportException failed with status code :-1073741823. Will tr
 : y to launch the process directly
 : 做了一个窗口类,里面用到了大量的QComboBox,然后每个QComboBox关联了一个QSqlQueryModel, 把其中的一些QSqlQueryModel的指针定义为了private成员函数,于是在窗口关闭的时候就crash了。baidu了一下说是内存溢出,有1M的限制。
 : ...................
 --
 FROM 112.47.122.*
 
- 谢谢,应该不是double free。用笨办法试了一下,使用变量的数量达到一定规模就这样,否则不会,基本可以确定是存储使用超过1M的范围了。
 
 【 在 hgoldfish 的大作中提到: 】
 : 用 valgrind 看看。
 : 多半是 double free 了。
 :
 --
 FROM 101.54.242.*