Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. error in qtLockedfile for QSingleApplication
QtWS25 Last Chance

error in qtLockedfile for QSingleApplication

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 549 Views
  • 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.
  • B Offline
    B Offline
    Bharth
    wrote on last edited by aha_1980
    #1

    hi
    im getting error in this line(qtLockedFile)

    foreach(Qt::HANDLE mutex, rmutexes) {
    ReleaseMutex(mutex);
    CloseHandle(mutex);
    }
    error: expected primary-expression before 'mutex'
    foreach(Qt::HANDLE mutex, rmutexes) {
    ^

    please help me to solve this

    raven-worxR RatzzR 2 Replies Last reply
    0
    • B Bharth

      hi
      im getting error in this line(qtLockedFile)

      foreach(Qt::HANDLE mutex, rmutexes) {
      ReleaseMutex(mutex);
      CloseHandle(mutex);
      }
      error: expected primary-expression before 'mutex'
      foreach(Qt::HANDLE mutex, rmutexes) {
      ^

      please help me to solve this

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Bharth
      what Qt version? Did you compile Qt yourself?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • B Bharth

        hi
        im getting error in this line(qtLockedFile)

        foreach(Qt::HANDLE mutex, rmutexes) {
        ReleaseMutex(mutex);
        CloseHandle(mutex);
        }
        error: expected primary-expression before 'mutex'
        foreach(Qt::HANDLE mutex, rmutexes) {
        ^

        please help me to solve this

        RatzzR Offline
        RatzzR Offline
        Ratzz
        wrote on last edited by
        #3

        @Bharth said in error in qtLockedfile for QSingleappication:

        im getting error

        It was working for you before https://forum.qt.io/topic/98417/how-to-create-singleinstance-application/13 ?

        Did you modify the code? Can you clean and rebuild?

        --Alles ist gut.

        B 1 Reply Last reply
        2
        • RatzzR Ratzz

          @Bharth said in error in qtLockedfile for QSingleappication:

          im getting error

          It was working for you before https://forum.qt.io/topic/98417/how-to-create-singleinstance-application/13 ?

          Did you modify the code? Can you clean and rebuild?

          B Offline
          B Offline
          Bharth
          wrote on last edited by
          #4

          @Ratzz no i did't modify , i cleaned and rebuild still im getting error

          RatzzR 1 Reply Last reply
          0
          • B Bharth

            @Ratzz no i did't modify , i cleaned and rebuild still im getting error

            RatzzR Offline
            RatzzR Offline
            Ratzz
            wrote on last edited by
            #5

            @Bharth
            Can you just check by downloading a fresh copy and test https://github.com/qtproject/qt-solutions/tree/master/qtsingleapplication?

            --Alles ist gut.

            1 Reply Last reply
            1

            • Login

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