[Qt-interest] Running apps with Qt 4.5 and MinGW: "Application fails to initialize"

Mihail Naydenov mlists at ymail.com
Tue Jun 23 10:32:34 CEST 2009


The sample you posted works fine (for me), in both debug and release, with and without qDebug()

the .pro:

TEMPLATE = app
TARGET = Qtapp
QT        += core 
SOURCES   += main.cpp


I know, Im not helping:)
MihailNydenov




----- Original Message ----
From: André Prins <a.h.prins at gmail.com>
To: Mihail Naydenov <mlists at ymail.com>
Sent: Tuesday, June 23, 2009 11:00:26 AM
Subject: Re: [Qt-interest] Running apps with Qt 4.5 and MinGW: "Application  fails to initialize"

Mihail,

Thank you for the hint. I have never tried the tdm variant of MinGW
but will try it sometime.

In the meantime I am still wondering what is happening with that
qDebug() statement and its effect on the entire application.

Regards,
Andre

On Mon, Jun 22, 2009 at 4:26 PM, Mihail Naydenov<mlists at ymail.com> wrote:
>
> There it tdm-mingw with gcc 4.4, and its not alpha/beta AFAIK.
> I have not compiled qt with it though...
>
>
>
>
> ----- Original Message ----
> From: André Prins <a.h.prins at gmail.com>
> To: qt-interest at trolltech.com
> Sent: Monday, June 22, 2009 4:46:21 PM
> Subject: [Qt-interest] Running apps with Qt 4.5 and MinGW: "Application fails to initialize"
>
> Dear all,
>
> In the past few months I have happily used the alpha-version of GCC
> 4.3.0-alpha with MinGW on Windows for small C++ projects withouth Qt.
> At the same time I used GCC 3.4.5 with MinGW for my Qt projects.
> Lately I tried using Qt 4.5 with GCC 4.3.0-alpha and build Qt from
> source. Except for two lines in
> src\3rdparty\webkit\WebCore\platform\Timer.cpp - which I commented out
> - this builds perfectly and compiling and linking applications with Qt
> 4.5 also works fine.
>
> Running my applications, however is a problem. Even the following
> simple application fails to run:
>
> #include <QApplication>
> #include <QDebug>
>
> int main( int argc, char* argv[] )
> {
>    QApplication app( argc, argv );
>
> //    qDebug() << "Application started." ;
> }
>
> Upon start, I get the following error message (twice):
>    "The application failed to initialize properly (0xc0000005). Click
> on OK to terminate the application."
>
> However, when I uncomment the line with qDebug(), everything works
> fine and I can add the normal things like creating Widgets, starting
> the event-loop, etc.
>
> So, what is so special about that qDebug statement? Or am I simply
> paying the price for using an alpha-version of GCC 4.3?
>
> Kind Regards,
> André
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
>
>



      





More information about the Qt-interest-old mailing list