Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Strange behaviour on n950
Forum Updated to NodeBB v4.3 + New Features

Strange behaviour on n950

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 3 Posters 2.4k 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.
  • A Offline
    A Offline
    AlterX
    wrote on last edited by
    #1

    Hi all,
    i've created an app for the n950; it works very well, but if i kill it in task manager, relaunching it, it doesn't start anymore;
    so i've tried to launch it in the terminal and it gives me the following message:

    ERROR!!: lock reserved but no window id for binary name found

    In my .desktop file i'm using "/usr/bin/single-instance /opt/MyApp/bin/Myapp

    Qt Ambassador
    Real-time cooperative teams: http://www.softairrealfight.net
    Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

    https://codereview.qt-project.org/...

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      For every single instance application there is a lock file created (/tmp/single-instance-locks/<application>/instance.lock if I remember correctly). I guess this lock persists when killing your application, which prevents single-instance from launching another instance.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AlterX
        wrote on last edited by
        #3

        Ok but so is a problem of the system that doesn't clear the lock...?

        Qt Ambassador
        Real-time cooperative teams: http://www.softairrealfight.net
        Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

        https://codereview.qt-project.org/...

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AlterX
          wrote on last edited by
          #4

          If i close my app with my close button, it always work; when i kill the app in the task manager it always doesn't restart!!!
          The lock file is always present in both case (closing the app)

          Qt Ambassador
          Real-time cooperative teams: http://www.softairrealfight.net
          Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

          https://codereview.qt-project.org/...

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgeyer
            wrote on last edited by
            #5

            I think single-instance should release the lock even when the application gets terminated.

            However, I am too little involved in Meego development to know why single-instance behaves this way or if this is a known limitation / bug. Probably the Meego forums or the Meego mailing list are better places to discuss this question.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AlterX
              wrote on last edited by
              #6

              Ok, but for that reason, ovi publisher has unpublished my app!

              Qt Ambassador
              Real-time cooperative teams: http://www.softairrealfight.net
              Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

              https://codereview.qt-project.org/...

              1 Reply Last reply
              0
              • K Offline
                K Offline
                Kypeli
                wrote on last edited by
                #7

                You should look from the page below how to do single instance apps in Harmattan (it's very badly documented by Nokia...)

                http://developer.qt.nokia.com/wiki/Single_Instance_Harmattan_Applications

                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