[Solved with MinGW 4.4] Qt 4.8.3, Windows 7, QtCreator 2.6: exited with code -1073741819
-
I try to compile C:\Qt\4.8.3\examples\tutorials\gettingStarted using QtCreator 2.6
The compile process is okay, but when part1.exe run. It exited with code -1073741819.I tried using http://www.dependencywalker.com/ to check part1.exe. I tried to copy from c:\windows\system32\gpsvc.dll, c:\windows\system32\sysntfy.dll, and IEShims.dll from Internet Explorer into release directory, it turned out that three DLL files is for Windows7 64bit machine.
My question is how to compile (what flags) to be used to force QtCreator build for x86 instead x64 machine?
Thanks in advance.
-
Seems that this is an access violation error. Similar topic regarding -1073741819 exists at "Qt Center":http://www.qtcentre.org/threads/34339-program-crashing-randomly-code-1073741819
-
I found http://lists.qt-project.org/pipermail/development/2012-September/006627.html
I tried to edit C:\Qt\4.8.3\mkspecs\features\device_config.pri (as suggested at https://codereview.qt-project.org/#patch,sidebyside,34507,1,mkspecs/features/device_config.prf) but still no luck. :(Can anyone successfully compile any demos/ examples project of Qt 4.8.3 on QtCreator 2.6?
Thanks.
-
Sorry but I haven't these demos and I am still with Qt Creator 2.4.1 which was shipped with "Nokia Qt SDK":http://www.developer.nokia.com/info/sw.nokia.com/id/da8df288-e615-443d-be5c-00c8a72435f8/Qt_SDK.html.
-
I am having the same problem with my own project and this is what the debugger is saying: @Starting program: C:\Users\Michael Jr\Documents\rccolumnbending-build-Desktop-De
bug\debug\rccolumnbending.exe
[New Thread 6040.0x14a4]Program received signal SIGSEGV, Segmentation fault.
0x00405724 in QBasicAtomicInt::deref (this=0x909090c3)
at ../../../../Qt/4.8.3/include/QtCore/../../src/corelib/arch/qatomic_i386.h
:132
132 : "memory");
(gdb) bt
#0 0x00405724 in QBasicAtomicInt::deref (this=0x909090c3)
at ../../../../Qt/4.8.3/include/QtCore/../../src/corelib/arch/qatomic_i386.h
:132
#1 0x00405b99 in QString::~QString (this=0x75eab17a <realloc+109>,
__in_chrg=<optimized out>)
at ../../../../Qt/4.8.3/include/QtCore/../../src/corelib/tools/qstring.h:880#2 0x004031ab in WinMain@16 (instance=0x400000, prevInstance=0x0, cmdShow=10)
at qtmain_win.cpp:93
#3 0x0040624b in main ()@ -
Since I change my MinGW 4.4 my problem is solved.
Qt 4.8.3 is friendly with MinGW 4.4 (2009).Download MinGW 4.4 at
ftp://ftp.qt.nokia.com/misc/MinGW-gcc440_1.zip -
Yes... programs compiled with GCC 4.7 are incompatible with programs/libraries compiled with GCC 4.4, unfortunately. And Qt 4.8.3 was compiled with GCC 4.4