QT編譯debug正常release報錯“this application has requested the runtime.......”問題解決

彈窗錯誤內容

This application has requested the runtime to terminate it in an unusual way.

Please contact the aplication's support team for more information.


 

應用程序輸出Log

19:24:46: Starting G:\svn\2. QT\QTCOMtest\build\release\test.exe...

ppsjy:[MyHookProc]__read web cfg: success ------ :

QWidget: Must construct a QApplication before a QWidget

Invalid parameter passed to C runtime function.

Invalid parameter passed to C runtime function.

 

解決方法:

1. .pro文件中註釋掉debug庫。

2. 點擊清除或者重新構建,run運行,問題解決。

 

參考:

https://blog.csdn.net/hebbely/article/details/52149868

https://blog.csdn.net/limj1987/article/details/78747093

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章