[Interest] 5.4.2 Android Misery just one typo away

mark diener rpzrpzrpz at gmail.com
Mon Jun 15 19:17:48 CEST 2015


Hello list folk:

Under OSX/IOS, no problem.

Under Android, nasty and obscure segment fault

Qt 5.4.2, NDK 10e

Do NOT under any circumstance forget the "&" before the argc parameter on
the constructor
if you override QGuiApplication (QApplication too)

Good:

Trpzapp::Trpzapp(int& argc, char** argv) : QGuiApplication(argc,argv)


Bad:

Trpzapp::Trpzapp(int argc, char** argv) : QGuiApplication(argc,argv)


It WILL compile on all the platforms, runs fine on OSX/IOS Simulator, but
on Android it will surely DIE.

This maybe is a bug, or maybe just user error that is not caught by the
compiler error system. (except maybe a compile warning)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150615/0bfd9e7e/attachment.html>


More information about the Interest mailing list