Unsolved Application stopped in QML
-
Hi,
We are using Arcgis Runtime SDK for Qt 10.2.6 and Qt 5.4.2 (MSVC 2013, 32 bit) Qt Creator QT\QML Android side We have local editing application which edits features within an offline geodatabase and sync back to the service.After deploying application in android device after a while device ram value is getting increasing and probably in max ram value crash application and give "cbc(App name ) stopped ".Are there any mechamizm for release objects which is previously used in app or are there any other ways to solve this important problem without crash app.
Thanks
-
@halil-sogut68 Delete objects when not required. Use lazy loading whereever possible using
Loader
orcreateComponent
.
http://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation.html#deleting-objects-dynamically -
Hi ,
Thanks @p3c0 for answering.I have the information about delete object but not for lazy loading are there any example about lazy loading and how to use in qml application .
Thanks
-
@halil-sogut68 Look for
Loader
andcreateComponent
. -
Hi,
Can I use this Self Destroying method to sove this problem ? In this method I'm thinking to solve with using destroy() method in onRunningChanged event If not run object I call destroy method. Should I create rect object again with createObject, when I want to use again or not ? Her is the code below:SelfDestroyingRect.qml
import QtQuick 2.0 Rectangle { id: rect width: 80; height: 80 color: "red" NumberAnimation on opacity { to: 0 duration: 1000 onRunningChanged: { if (!running) { console.log("Destroying...") rect.destroy(); } } } }
-
Should I create rect object again with createObject, when I want to use again or not ?
Yes you will need to create the object again.
-
Thanks @p3c0