[Development] Errors in release mode only

raven-worx Software info at raven-worx.net
Mon Mar 30 22:36:04 CEST 2015


As i said, i get it even when i just compile this piece of code and  
link to Qt binaries (core, gui, widgets, network) and only in release:

int main(int argc, char *argv[])
{
     QApplication app(argc, argv);
     return app.exec();
}

I guess this is only an issue on Windows.



>> QEventLoop: Cannot be used without QApplication
>
> Says everything.
>
> Show your code.
>
> Regards,
> Konstantin
>
> 2015-03-30 23:21 GMT+04:00 raven-worx Software <info at raven-worx.net>:
>
>> Hi,
>>
>> i get the following print outs to the console and absolutley have no clue
>> why:
>>
>> SHIMVIEW: ShimInfo(Complete)
>> QEventLoop: Cannot be used without QApplication
>> QObject::connect: Cannot connect (null)::aboutToQuit() to
>> QNativeWifiEngine::closeHandle()
>>
>> But this only happens in RELEASE MODE! DEBUG mode works fine and these
>> print outs are not showing up.
>>
>> I even get these print outs when my main() only returns 0, so no
>> QApplication is instantiated meaning as soon as i link against Qt
>> binaries.
>>
>> Once the application starts up i also noticed that (queued) signals
>> from other threads are not delivered anymore, which most probably
>> involves the QEventLoop error message somehow. But on the other hand
>> events from the OS are delivered.
>>
>> I am using:
>> QtCreator 3.3.1, MSVC2012, Qt 5.4.1
>>
>>
>> _______________________________________________
>> Development mailing list
>> Development at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/development
>>
>







More information about the Development mailing list