If you are having memory allocation problems when using QtQuick with Windows CE, check QTBUG-26227
-
As the title says, I've just posted a bug report about a serious problem that happens
when using QtQuick with Windows CE devices.I guess it's the same problem at the root of various issues about QML code allocating memory
and never releasing it:
"QTBUG-26227":https://bugreports.qt-project.org/browse/QTBUG-26227If you are using Qt 4.8.2 or a previous version and notice memory is allocated by QML code but never released as should be, give a look at the bug report and at the proposed fix, it may solve your problem too.
-
It was the first time I built Qt for Windows CE 5.0 for production devices (previously we were using only Windows CE 6.0).
At first I was having memory allocation errors I initially supposed were caused by the 32MB limit for data and program dlls, so i forced -Os in the mkspec for the target device and inserted qDebug() messages to generate an application specific execution log about what was actually going on, after i noticed program termination happened before reaching the 32MB limit, I started combing the compilation log to see if there was something suspicious besides the usual data truncation warnings and found that weird warning about rewind() macro substitution.
-
Lately I rebuild some stuff using Qt 4.8.4 and discovered that the bug still exists.
It exists in 4.8.3, too.The fixes added to the source code instead of "#undef rewind"
contained "# undef rewind" (blank spaces between "#" and "undef")
and it seems that VS2005 C++ compiler for ARM ignores that.