Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Application stopped in QML

Application stopped in QML

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    halil sogut68
    wrote on last edited by halil sogut68
    #1

    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

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @halil-sogut68 Delete objects when not required. Use lazy loading whereever possible using Loader or createComponent.
      http://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation.html#deleting-objects-dynamically

      157

      1 Reply Last reply
      1
      • H Offline
        H Offline
        halil sogut68
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          @halil-sogut68 Look for Loader and createComponent.

          157

          1 Reply Last reply
          0
          • H Offline
            H Offline
            halil sogut68
            wrote on last edited by p3c0
            #5

            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();
                        }
                    }
                }
            }
            
            1 Reply Last reply
            0
            • p3c0P Offline
              p3c0P Offline
              p3c0
              Moderators
              wrote on last edited by
              #6

              @halil-sogut68

              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.

              157

              1 Reply Last reply
              0
              • H Offline
                H Offline
                halil sogut68
                wrote on last edited by
                #7

                Thanks @p3c0

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved