2013-08-19 54 views
2

當我嘗試從Qt Creator的內調試我的Qt C++應用程序,它具有以下錯誤消息始終崩潰:Qt的GDB崩潰我的退出代碼應用1

**An unhandled win32 exception in gdb.exe** 

然而,當我嘗試推出相同通過雙擊二進制文件,它運行得很好。 另外,我還可以在命令行這樣

C:\Users\CoolCast>c:\MinGW4.4\bin\gdb.exe C:\QuiKast\git_apps_0_1\Server\MediaSt 
reamServer-build-Desktop-Debug\debug\CoolCast.exe 
GNU gdb 6.8 
Copyright (C) 2008 Free Software Foundation, Inc. 
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 
This is free software: you are free to change and redistribute it. 
There is NO WARRANTY, to the extent permitted by law. Type "show copying" 
and "show warranty" for details. 
This GDB was configured as "i686-pc-mingw32"... 
(gdb) run 
Starting program: C:\QuiKast\git_apps_0_1\Server\MediaStreamServer-build-Desktop 
-Debug\debug\CoolCast.exe 
[New thread 2112.0x1224] 
[New thread 2112.0x12c8] 
[New thread 2112.0xc00] 
[New thread 2112.0x1264] 
[New thread 2112.0x150c] 
... and so on. 

我的環境和程序版本上運行我的gdb的二進制:

Windows 7 
Qt SDK 4.8.4 
MinGw 4.4 
GDB auto-detected under Mingw and set to C:\Mingw4.4\bin\gdb.exe 

回答

1

更新GDB gdb-windows的新版本。創建者至少需要版本7.2 IIRC。 Pleae檢查類似的鏈接。 GDB crash in Qt Creator 2.5

+0

如果是版本不匹配問題,從命令行調用gdb將無法正常工作。 –

+0

http://qt-project.org/forums/viewthread/18932,我根據「tobler shubger」更新了評論。 Biswas,還有另一個需要重新搜索的原因,他爲什麼要這樣評論:) – Ashif

+1

你是對的 - Qt Creator不僅僅是以難忘的方式調用gdb.exe。所以一個不兼容的gdb可以從命令行獨立運行,但不一定需要與Qt Creator配合使用 –